Module: ActiveRecord::Userstamp::Stamper::ClassMethods

Defined in:
lib/active_record/userstamp/stamper.rb

Instance Method Summary collapse

Instance Method Details

#model_stamperObject



8
9
10
11
12
# File 'lib/active_record/userstamp/stamper.rb', line 8

def model_stamper
  # don't allow multiple calls
  return if self.included_modules.include?(ActiveRecord::Userstamp::Stamper::InstanceMethods)
  send(:extend, ActiveRecord::Userstamp::Stamper::InstanceMethods)
end