Class: Mongoid::ActsAsList::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/mongoid/acts_as_list/configuration.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

Returns a new instance of Configuration.



6
7
8
9
# File 'lib/mongoid/acts_as_list/configuration.rb', line 6

def initialize
  @default_position_field = :position
  @start_list_at = 0
end

Instance Attribute Details

#default_position_fieldObject

Returns the value of attribute default_position_field.



4
5
6
# File 'lib/mongoid/acts_as_list/configuration.rb', line 4

def default_position_field
  @default_position_field
end

#start_list_atObject

Returns the value of attribute start_list_at.



4
5
6
# File 'lib/mongoid/acts_as_list/configuration.rb', line 4

def start_list_at
  @start_list_at
end