Module: Drifter::Rails::InstanceMethods

Defined in:
lib/drifter-rails/instance_methods.rb

Defined Under Namespace

Modules: LatAccessors, LngAccessors

Class Method Summary collapse

Class Method Details

.included(base) ⇒ Object

nodoc



6
7
8
9
10
# File 'lib/drifter-rails/instance_methods.rb', line 6

def self.included(base)
  base.send :include, Drifter::Location::Locatable
  base.send :include, LatAccessors unless base.has_method?(:lat)
  base.send :include, LngAccessors unless base.has_method?(:lng)
end