module SingularResource::Strategies::AssignFromMethodEager
Public Instance Methods
attributes()
click to toggle source
# File lib/singular_resource/strategies/assign_from_method_eager.rb, line 8 def attributes @attributes ||= method_attributes || {} end
Private Instance Methods
default_params_method()
click to toggle source
# File lib/singular_resource/strategies/assign_from_method_eager.rb, line 14 def default_params_method "#{name}_params" end
method_attributes()
click to toggle source
# File lib/singular_resource/strategies/assign_from_method_eager.rb, line 18 def method_attributes controller.send(options[:attributes] || default_params_method) unless options[:attributes] == false end