Module: CsvRails::Mongoid

Defined in:
lib/csv_rails/mongoid.rb

Defined Under Namespace

Modules: ClassMethods

Class Method Summary collapse

Class Method Details

.included(base) ⇒ Object



3
4
5
6
7
8
9
# File 'lib/csv_rails/mongoid.rb', line 3

def self.included(base)
  base.send(:include, CsvRails::ActiveModel::InstanceMethods)
  base.const_get(:ClassMethods).tap{|klass|
    klass.send(:include, CsvRails::ActiveModel::ClassMethods)
    klass.send(:include, ClassMethods)
  }
end