class ActiveScaffold::DataStructures::NestedInfoScope
Public Class Methods
new(model, params)
click to toggle source
Calls superclass method
ActiveScaffold::DataStructures::NestedInfo.new
# File lib/active_scaffold/data_structures/nested_info.rb, line 145 def initialize(model, params) super @scope = params[:named_scope].to_sym @param_name = parent_model.name.foreign_key.to_sym @parent_id = params[@param_name] @constrained_fields = [] end
Public Instance Methods
name()
click to toggle source
# File lib/active_scaffold/data_structures/nested_info.rb, line 157 def name scope end
to_params()
click to toggle source
Calls superclass method
ActiveScaffold::DataStructures::NestedInfo#to_params
# File lib/active_scaffold/data_structures/nested_info.rb, line 153 def to_params super.merge(:named_scope => @scope) end