Sha256: c7a5cee015108412feb28b944842a34823412447e43acb598af45dcb5f331db1

Contents?: true

Size: 945 Bytes

Versions: 20

Compression:

Stored size: 945 Bytes

Contents

module Abstractor
  module Methods
    module Controllers
      module AbstractorSuggestionsController
        def self.included(base)
          base.send :before_filter, :set_abstractor_suggestion, :only => [:update]
        end

        def update
          respond_to do |format|
            if @abstractor_suggestion.update_attributes(params[:abstractor_suggestion])
              format.html { redirect_to(abstractor_abstraction_path(@abstractor_abstraction)) }
            else
              format.html { render "abstractor_abstractions/show" }
            end
          end
        end

        private
          def set_abstractor_suggestion
            @abstractor_abstraction = Abstractor::AbstractorAbstraction.find(params[:abstractor_abstraction_id])
            @abstractor_suggestion = Abstractor::AbstractorSuggestion.find(params[:id])
            @about = @abstractor_abstraction.about
          end
      end
    end
  end
end

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
abstractor-2.1.2 lib/abstractor/methods/controllers/abstractor_suggestions_controller.rb
abstractor-2.1.01 lib/abstractor/methods/controllers/abstractor_suggestions_controller.rb
abstractor-2.1.0 lib/abstractor/methods/controllers/abstractor_suggestions_controller.rb
abstractor-2.0.1 lib/abstractor/methods/controllers/abstractor_suggestions_controller.rb
abstractor-2.0.0 lib/abstractor/methods/controllers/abstractor_suggestions_controller.rb
abstractor-1.0.23 lib/abstractor/methods/controllers/abstractor_suggestions_controller.rb
abstractor-1.0.22 lib/abstractor/methods/controllers/abstractor_suggestions_controller.rb
abstractor-1.0.20 lib/abstractor/methods/controllers/abstractor_suggestions_controller.rb
abstractor-1.0.19 lib/abstractor/methods/controllers/abstractor_suggestions_controller.rb
abstractor-1.0.18 lib/abstractor/methods/controllers/abstractor_suggestions_controller.rb
abstractor-1.0.17 lib/abstractor/methods/controllers/abstractor_suggestions_controller.rb
abstractor-1.0.16 lib/abstractor/methods/controllers/abstractor_suggestions_controller.rb
abstractor-1.0.15 lib/abstractor/methods/controllers/abstractor_suggestions_controller.rb
abstractor-1.0.14 lib/abstractor/methods/controllers/abstractor_suggestions_controller.rb
abstractor-1.0.13 lib/abstractor/methods/controllers/abstractor_suggestions_controller.rb
abstractor-1.0.12 lib/abstractor/methods/controllers/abstractor_suggestions_controller.rb
abstractor-1.0.11 lib/abstractor/methods/controllers/abstractor_suggestions_controller.rb
abstractor-1.0.10 lib/abstractor/methods/controllers/abstractor_suggestions_controller.rb
abstractor-1.0.9 lib/abstractor/methods/controllers/abstractor_suggestions_controller.rb
abstractor-1.0.8 lib/abstractor/methods/controllers/abstractor_suggestions_controller.rb