Module: ActiveRecord::Acts::List::PositionColumnMethodDefiner
- Defined in:
- lib/acts_as_list/active_record/acts/position_column_method_definer.rb
Overview
:nodoc:
Class Method Summary collapse
Class Method Details
.call(caller_class, position_column, touch_on_update) ⇒ Object
6 7 8 9 10 11 12 13 |
# File 'lib/acts_as_list/active_record/acts/position_column_method_definer.rb', line 6 def self.call(caller_class, position_column, touch_on_update) define_class_methods(caller_class, position_column, touch_on_update) define_instance_methods(caller_class, position_column) if mass_assignment_protection_was_used_by_user?(caller_class) protect_attributes_from_mass_assignment(caller_class, position_column) end end |