Class: Mongoid::ActsAsList::Configuration
- Inherits:
-
Object
- Object
- Mongoid::ActsAsList::Configuration
- Defined in:
- lib/mongoid/acts_as_list/configuration.rb
Instance Attribute Summary collapse
-
#default_position_field ⇒ Object
Returns the value of attribute default_position_field.
-
#start_list_at ⇒ Object
Returns the value of attribute start_list_at.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
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_field ⇒ Object
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_at ⇒ Object
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 |