Class: ActiveScaffold::DataStructures::NestedInfoScope

Inherits:
NestedInfo show all
Defined in:
lib/active_scaffold/data_structures/nested_info.rb

Instance Attribute Summary

Attributes inherited from NestedInfo

#association, #child_association, #constrained_fields, #parent_id, #parent_model, #parent_scaffold, #scope

Instance Method Summary collapse

Methods inherited from NestedInfo

#belongs_to?, get, #habtm?, #has_one?, #new_instance?, #parent_scope, #readonly?, #sorted?

Constructor Details

#initialize(model, session_info) ⇒ NestedInfoScope

Returns a new instance of NestedInfoScope.



117
118
119
120
121
# File 'lib/active_scaffold/data_structures/nested_info.rb', line 117

def initialize(model, session_info)
  super(model, session_info)
  @scope = session_info[:name]
  @constrained_fields = [] 
end