Class: ActiveMocker::ActiveRecord::Base Private

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

This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.

Defined Under Namespace

Classes: ConstMissing

Class Method Summary collapse

Methods included from Scope

get_named_scopes, 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

Class Method Details

._extendedObject

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



58
59
60
# File 'lib/active_mocker/active_record.rb', line 58

def self._extended
  @extended ||= []
end

._includedObject

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



50
51
52
# File 'lib/active_mocker/active_record.rb', line 50

def self._included
  @included ||= []
end

.const_missing(name) ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



42
43
44
# File 'lib/active_mocker/active_record.rb', line 42

def self.const_missing(name)
  Object.const_set name, Class.new(ConstMissing)
end

.extend(name) ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



54
55
56
# File 'lib/active_mocker/active_record.rb', line 54

def self.extend(name)
  _extended << name
end

.include(name) ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



46
47
48
# File 'lib/active_mocker/active_record.rb', line 46

def self.include(name)
  _included << name
end

.primary_keyObject

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



28
29
30
31
# File 'lib/active_mocker/active_record.rb', line 28

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

.primary_key=(primary_key) ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



24
25
26
# File 'lib/active_mocker/active_record.rb', line 24

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

.table_nameObject

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



19
20
21
22
# File 'lib/active_mocker/active_record.rb', line 19

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

.table_name=(table_name) ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



15
16
17
# File 'lib/active_mocker/active_record.rb', line 15

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