Sha256: 044423cf544539f4c9055cf9e64c19231777bcc0c4e9d261f2b80b5c3a0656d7

Contents?: true

Size: 465 Bytes

Versions: 1

Compression:

Stored size: 465 Bytes

Contents

module Stationed
  module Generators
    module Plugins
      module StrongParameters
        def finish_template
          environment nil, env: :development do
            <<-RUBY
# Raise an ActionController::UnpermittedParameters exception when
# a parameter is not explcitly permitted but is passed anyway.
config.action_controller.action_on_unpermitted_parameters = :raise
            RUBY
          end
          super
        end
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
stationed-0.0.1 lib/stationed/generators/plugins/strong_parameters.rb