Module: SmsOnRails::ActsAsDeliverable::ClassMethods

Defined in:
lib/sms_on_rails/activerecord_extensions/acts_as_deliverable.rb

Instance Method Summary collapse

Instance Method Details

#acts_as_deliverable(options = {}) ⇒ Object



18
19
20
21
22
23
24
25
# File 'lib/sms_on_rails/activerecord_extensions/acts_as_deliverable.rb', line 18

def acts_as_deliverable(options={})
  class_eval do
    acts_as_deliverable_options.update(options) if options
    include SmsOnRails::ActsAsDeliverable::InstanceMethods
    extend  SmsOnRails::ActsAsDeliverable::SingletonMethods
    lockable_record acts_as_deliverable_options[:locrec_options]
  end
end