comparison plugins/redmine_bibliography/app/controllers/publications_controller.rb @ 1317:2805873c0147 redmine-2.2-integration

several fixes to the publications#show page and related views.
author luisf <luis.figueira@eecs.qmul.ac.uk>
date Tue, 18 Jun 2013 17:34:56 +0100
parents 006057cf8f16
children e2c17a09ce86
comparison
equal deleted inserted replaced
1314:033fecbc3438 1317:2805873c0147
3 3
4 class PublicationsController < ApplicationController 4 class PublicationsController < ApplicationController
5 unloadable 5 unloadable
6 6
7 model_object Publication 7 model_object Publication
8 # before_filter :find_model_object, :except => [:new, :create, :index, :show_bibtex_fields, :autocomplete_for_project, :add_author, :sort_author_order, :autocomplete_for_author, :get_user_info ] 8 before_filter :find_model_object, :only => [ :show, :add_project ]
9
10 before_filter :find_project_by_project_id, :authorize, :only => [ :edit, :new, :update, :create ] 9 before_filter :find_project_by_project_id, :authorize, :only => [ :edit, :new, :update, :create ]
11 10
12 def new 11 def new
13 find_project_by_project_id 12 find_project_by_project_id
14 @publication = Publication.new 13 @publication = Publication.new