Files

Class/Module Index [+]

Quicksearch

ActiveScaffold::DataStructures::NestedInfoScope

Public Class Methods

new(model, params) click to toggle source
# File lib/active_scaffold/data_structures/nested_info.rb, line 142
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 154
def name
  self.scope
end
to_params() click to toggle source
# File lib/active_scaffold/data_structures/nested_info.rb, line 150
def to_params
  super.merge(:named_scope => @scope)
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.