Sha256: e0db9b4ef2783451ae270e5532bb7058215dc435cf06f8be3b0f36ded347d808
Contents?: true
Size: 1.27 KB
Versions: 3
Compression:
Stored size: 1.27 KB
Contents
$:.unshift File.expand_path('../../', __FILE__) require 'active_mocker/active_record/scope' require 'active_mocker/active_record/relationships' require 'active_mocker/active_record/unknown_class_method' require 'active_mocker/active_record/unknown_module' module ActiveMocker module ActiveRecord class Base #< ::ActiveRecord::Base extend Scope extend Relationships extend UnknownClassMethod # extend UnknownModule def self.table_name=(table_name) @table_name = table_name end def self.table_name @table_name ||= nil @table_name end def self.primary_key=(primary_key) @primary_key = primary_key end def self.primary_key @primary_key ||= nil @primary_key end class ConstMissing def self.const_missing(name) self.const_set name, Class.new(ConstMissing) end end def self.const_missing(name) Object.const_set name, Class.new(ConstMissing) end def self.include(name) _included << name end def self._included @included ||= [] end def self.extend(name) _extended << name end def self._extended @extended ||= [] end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
active_mocker-1.5.2 | lib/active_mocker/active_record.rb |
active_mocker-1.5.1 | lib/active_mocker/active_record.rb |
active_mocker-1.5 | lib/active_mocker/active_record.rb |