Method: Jsm::Client::ActiveRecord.included

Defined in:
lib/jsm/client/active_record.rb

.included(base) ⇒ Object



2
3
4
5
6
# File 'lib/jsm/client/active_record.rb', line 2

def self.included(base)
  base.extend ClassMethods
  # Basically ActiveModel and ActiveRecord almost have the same behavior for its instance
  base.send(:include, Jsm::Client::ActiveModel::InstanceMethods)
end