module SingularResource::Strategies::AssignFromParams
Public Instance Methods
attributes()
click to toggle source
# File lib/singular_resource/strategies/assign_from_params.rb, line 8 def attributes @attributes ||= params[param_key] || {} end
Private Instance Methods
param_key()
click to toggle source
# File lib/singular_resource/strategies/assign_from_params.rb, line 14 def param_key options[:param_key] || inflector.param_key end