Module: Jsm::Client::Mongoid

Defined in:
lib/jsm/client/mongoid.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/mongoid.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