Module: Jsm::Client::ActiveRecord

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

Defined Under Namespace

Modules: ClassMethods

Class Method Summary collapse

Class Method Details

.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