Sha256: 14bf1112c36a158a137d2d624c23a7139448a9d6de1322ea3f2bfe2b731d9d12

Contents?: true

Size: 484 Bytes

Versions: 13

Compression:

Stored size: 484 Bytes

Contents

# frozen_string_literal: true

always_permitted_parameters = %w{id}

if ::ActionController::Parameters.respond_to?(:always_permitted_parameters)
  ::ActionController::Parameters.always_permitted_parameters += always_permitted_parameters
else
  always_permitted_parameters.each do |always_permitted_parameter|
    ::ActionController::Parameters::NEVER_UNPERMITTED_PARAMS << always_permitted_parameter
  end
end

::ActionController::Parameters.action_on_unpermitted_parameters = :raise

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
rspeckled-2.0.1 lib/rspeckled/plugins/extensions/strong_parameters.rb
rspeckled-2.0.0 lib/rspeckled/plugins/extensions/strong_parameters.rb
rspeckled-1.4.0 lib/rspeckled/plugins/extensions/strong_parameters.rb
rspeckled-1.3.1 lib/rspeckled/plugins/extensions/strong_parameters.rb
rspeckled-1.3.0 lib/rspeckled/plugins/extensions/strong_parameters.rb
rspeckled-1.2.1 lib/rspeckled/plugins/extensions/strong_parameters.rb
rspeckled-1.2.0 lib/rspeckled/plugins/extensions/strong_parameters.rb
rspeckled-1.1.3 lib/rspeckled/plugins/extensions/strong_parameters.rb
rspeckled-1.1.2 lib/rspeckled/plugins/extensions/strong_parameters.rb
rspeckled-1.1.1 lib/rspeckled/plugins/extensions/strong_parameters.rb
rspeckled-1.1.0 lib/rspeckled/plugins/extensions/strong_parameters.rb
rspeckled-1.0.5 lib/rspeckled/plugins/extensions/strong_parameters.rb
rspeckled-1.0.4 lib/rspeckled/plugins/extensions/strong_parameters.rb