class ActiveScaffold::DataStructures::NestedInfoScope

Public Instance Methods

name() click to toggle source
# File lib/active_scaffold/data_structures/nested_info.rb, line 167
def name
  self.scope
end
to_params() click to toggle source
# File lib/active_scaffold/data_structures/nested_info.rb, line 163
def to_params
  super.merge(:named_scope => @scope)
end

Public Class Methods

new(model, nested_info) click to toggle source
# File lib/active_scaffold/data_structures/nested_info.rb, line 157
def initialize(model, nested_info)
  super(model, nested_info)
  @scope = nested_info[:name]
  @constrained_fields = [] 
end