Sha256: abc922d1a20d9a0d7207ec0bc116097bf3bd0a52ae8fb42cebe56016723d607b

Contents?: true

Size: 335 Bytes

Versions: 16

Compression:

Stored size: 335 Bytes

Contents

module Qbrick
  class BaseController < Qbrick::Cms::BackendController
    inherit_resources

    def show
      super do |format|
        format.html { redirect_to collection_path }
      end
    end

    private

    def permitted_params
      params.permit(resource_instance_name => collection.editable_attributes)
    end
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
qbrick-2.7.1 lib/templates/qbrick/custom_model_generator/base_controller.rb
qbrick-2.7 lib/templates/qbrick/custom_model_generator/base_controller.rb
qbrick-2.6.10 lib/templates/qbrick/custom_model_generator/base_controller.rb
qbrick-2.6.9 lib/templates/qbrick/custom_model_generator/base_controller.rb
qbrick-2.6.8 lib/templates/qbrick/custom_model_generator/base_controller.rb
qbrick-2.6.7 lib/templates/qbrick/custom_model_generator/base_controller.rb
qbrick-2.6.6 lib/templates/qbrick/custom_model_generator/base_controller.rb
qbrick-2.6.5 lib/templates/qbrick/custom_model_generator/base_controller.rb
qbrick-2.6.4 lib/templates/qbrick/custom_model_generator/base_controller.rb
qbrick-2.6.3 lib/templates/qbrick/custom_model_generator/base_controller.rb
qbrick-2.6.2 lib/templates/qbrick/custom_model_generator/base_controller.rb
qbrick-2.6.1 lib/templates/qbrick/custom_model_generator/base_controller.rb
qbrick-2.6.0 lib/templates/qbrick/custom_model_generator/base_controller.rb
qbrick-2.5.2 lib/templates/qbrick/custom_model_generator/base_controller.rb
qbrick-2.5.1 lib/templates/qbrick/custom_model_generator/base_controller.rb
qbrick-2.5.0 lib/templates/qbrick/custom_model_generator/base_controller.rb