Class: ActiveMocker::ActiveRecord::Base

Inherits:
Object
  • Object
show all
Extended by:
UnknownClassMethod, UnknownModule, ConstMissing, Relationships, Scope
Defined in:
lib/active_mocker/active_record.rb

Class Method Summary collapse

Methods included from Scope

scope

Methods included from Relationships

belongs_to, collections, has_and_belongs_to_many, has_many, has_one, included, relationships, single_relationships

Methods included from UnknownClassMethod

method_missing

Methods included from UnknownModule

extend, include

Class Method Details

.const_missing(name) ⇒ Object



35
36
37
# File 'lib/active_mocker/active_record.rb', line 35

def self.const_missing(name)
  # Logger_.debug "ActiveMocker :: Can't can't find Constant #{name} from class #{}."
end

.primary_keyObject



30
31
32
33
# File 'lib/active_mocker/active_record.rb', line 30

def self.primary_key
  @primary_key ||= nil
  @primary_key
end

.primary_key=(primary_key) ⇒ Object



26
27
28
# File 'lib/active_mocker/active_record.rb', line 26

def self.primary_key=(primary_key)
  @primary_key = primary_key
end

.table_nameObject



21
22
23
24
# File 'lib/active_mocker/active_record.rb', line 21

def self.table_name
  @table_name ||= nil
  @table_name
end

.table_name=(table_name) ⇒ Object



17
18
19
# File 'lib/active_mocker/active_record.rb', line 17

def self.table_name=(table_name)
  @table_name = table_name
end