Class: ApplicationController::StrongParametersWithEagerAttributesStrategy

Inherits:
DecentExposure::StrongParametersStrategy
  • Object
show all
Defined in:
app/controllers/application_controller.rb

Instance Method Summary collapse

Instance Method Details

#assign_attributes?Boolean

Returns:

  • (Boolean)

18
19
20
# File 'app/controllers/application_controller.rb', line 18

def assign_attributes?
  singular? && !get? && !delete? && (params[options[:param_key] || inflector.param_key]).present?
end