Module: HasTracking::ClassMethods

Defined in:
lib/has_tracking.rb

Instance Method Summary collapse

Instance Method Details

#has_tracking(options = {}) ⇒ Object



10
11
12
13
14
# File 'lib/has_tracking.rb', line 10

def has_tracking(options = {})
  cattr_accessor :tracking_number
  self.tracking_number = (options[:tracking_number] || :tracking_number).to_s
  send :include, InstanceMethods
end