X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/2e4974b1f5600a3a446d5b0844a8d63d9fb5fbb3..bb4a4d16d15e4ac5dc01f6776f4fb3ca595b4706:/redmine/redmine_publications/app/controllers/publications_controller.rb diff --git a/redmine/redmine_publications/app/controllers/publications_controller.rb b/redmine/redmine_publications/app/controllers/publications_controller.rb deleted file mode 100644 index c7d16e3f..00000000 --- a/redmine/redmine_publications/app/controllers/publications_controller.rb +++ /dev/null @@ -1,30 +0,0 @@ - -class PublicationsController < ApplicationController - unloadable - - @@source_file_field_id = 1 - - def issues - logger.info "Searching for issues with document name = " + params[:pub] + "." - joins = "JOIN issue_publications ON (issues.id = issue_publications.issue_id) JOIN publications ON (issue_publications.publication_id = publications.id)" - - conditions = ['publications.source_file = ? ', params[:pub] ] - @issues = Issue.all(:joins => joins, :conditions => conditions) - respond_to do |format| - format.html - format.xml do - render :xml => @issues - end - - format.json do - headers['Content-Type'] = 'application/json' - render :json => @issues - end - end - end - - def redirect_to_platform - render :text => "" - end - -end