Module: ActiveRecord::Acts::List::AddNewAtMethodDefiner

Defined in:
lib/acts_as_list/active_record/acts/add_new_at_method_definer.rb

Overview

:nodoc:

Class Method Summary collapse

Class Method Details

.call(caller_class, add_new_at) ⇒ Object



4
5
6
7
8
9
10
# File 'lib/acts_as_list/active_record/acts/add_new_at_method_definer.rb', line 4

def self.call(caller_class, add_new_at)
  caller_class.class_eval do
    define_method :add_new_at do
      add_new_at
    end
  end
end