Module: WirelessModel

Defined in:
lib/wireless_model.rb

Defined Under Namespace

Modules: ClassMethods

Class Method Summary collapse

Class Method Details

.included(mod) ⇒ Object



7
8
9
10
11
12
13
14
# File 'lib/wireless_model.rb', line 7

def self.included(mod)
  mod.extend ClassMethods

  if defined? ActiveResource::Base
    ActiveResource::Base.send :include, ActiveResource::ActsLikeActiveRecord
    ActiveResource::Base.extend ActiveResource::Scopes
  end
end