Module: SmsOnRails::ModelSupport::PhoneCarrier

Included in:
PhoneCarrier
Defined in:
lib/sms_on_rails/model_support/phone_carrier.rb

Defined Under Namespace

Modules: ClassMethods, InstanceMethods

Class Method Summary collapse

Class Method Details

.included(base) ⇒ Object



4
5
6
7
8
# File 'lib/sms_on_rails/model_support/phone_carrier.rb', line 4

def self.included(base)
  base.send :validates_presence_of, :name
  base.send :include, InstanceMethods
  base.send :extend, ClassMethods
end