Module: Reactive::MetaModel::ActiveRecord

Defined in:
lib/activerecord_meta_model.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.included(base) ⇒ Object



4
5
6
7
8
# File 'lib/activerecord_meta_model.rb', line 4

def self.included(base)
  def base.meta
    @meta ||= ActiveRecordModel.new(self)
  end
end

Instance Method Details

#supraObject



10
11
12
# File 'lib/activerecord_meta_model.rb', line 10

def supra
  @supra ||= ActiveRecordInstance.new(self)
end