Module: Abstractor::Methods::Controllers::AbstractorSuggestionsController
- Included in:
- AbstractorSuggestionsController
- Defined in:
- lib/abstractor/methods/controllers/abstractor_suggestions_controller.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.included(base) ⇒ Object
5 6 7 |
# File 'lib/abstractor/methods/controllers/abstractor_suggestions_controller.rb', line 5 def self.included(base) base.send :before_filter, :set_abstractor_suggestion, :only => [:update] end |
Instance Method Details
#update ⇒ Object
9 10 11 12 13 14 15 16 17 |
# File 'lib/abstractor/methods/controllers/abstractor_suggestions_controller.rb', line 9 def update respond_to do |format| if @abstractor_suggestion.update_attributes(abstractor_suggestion_params) format.html { redirect_to(abstractor_abstraction_path(@abstractor_abstraction)) } else format.html { render "abstractor_abstractions/show" } end end end |