Skip to content

Commit

Permalink
* Marking controllers as unloadable (http://dev.rubyonrails.org/ticke…
Browse files Browse the repository at this point in the history
  • Loading branch information
edavis10 committed Jan 9, 2008
1 parent 4acd5cc commit 1427c7d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/controllers/score_options_controller.rb
@@ -1,4 +1,5 @@
class ScoreOptionsController < ApplicationController class ScoreOptionsController < ApplicationController
unloadable
layout 'base' layout 'base'
before_filter :find_project, :authorize before_filter :find_project, :authorize


Expand All @@ -12,7 +13,7 @@ def edit
when :post when :post
@score_options = params[:score_option] @score_options = params[:score_option]
@score_options.each do |id,text| @score_options.each do |id,text|

@score_option = ScoreOption.find_or_create_by_id(id) @score_option = ScoreOption.find_or_create_by_id(id)


@score_option.name = text @score_option.name = text
Expand Down
1 change: 1 addition & 0 deletions app/controllers/scores_controller.rb
@@ -1,4 +1,5 @@
class ScoresController < ApplicationController class ScoresController < ApplicationController
unloadable
layout 'base' layout 'base'
before_filter :find_project, :authorize before_filter :find_project, :authorize


Expand Down

0 comments on commit 1427c7d

Please sign in to comment.