Module: ActiveRecord::Acts::List::TopOfListMethodDefiner
- Defined in:
- lib/acts_as_list/active_record/acts/top_of_list_method_definer.rb
Overview
:nodoc:
Class Method Summary collapse
Class Method Details
.call(caller_class, top_of_list) ⇒ Object
4 5 6 7 8 9 10 11 12 13 14 |
# File 'lib/acts_as_list/active_record/acts/top_of_list_method_definer.rb', line 4 def self.call(caller_class, top_of_list) caller_class.class_eval do define_singleton_method :acts_as_list_top do top_of_list.to_i end define_method :acts_as_list_top do top_of_list.to_i end end end |