Class: ActiveMocker::ActiveRecord::Base
Overview
Defined Under Namespace
Classes: ConstMissing
Class Method Summary
collapse
Methods included from Scope
get_named_scopes, scope
belongs_to, collections, has_and_belongs_to_many, has_many, has_one, included, relationships, single_relationships
method_missing
Class Method Details
._extended ⇒ Object
57
58
59
|
# File 'lib/active_mocker/active_record.rb', line 57
def self._extended
@extended ||= []
end
|
._included ⇒ Object
49
50
51
|
# File 'lib/active_mocker/active_record.rb', line 49
def self._included
@included ||= []
end
|
.const_missing(name) ⇒ Object
41
42
43
|
# File 'lib/active_mocker/active_record.rb', line 41
def self.const_missing(name)
Object.const_set name, Class.new(ConstMissing)
end
|
.extend(name) ⇒ Object
53
54
55
|
# File 'lib/active_mocker/active_record.rb', line 53
def self.extend(name)
_extended << name
end
|
.include(name) ⇒ Object
45
46
47
|
# File 'lib/active_mocker/active_record.rb', line 45
def self.include(name)
_included << name
end
|
.primary_key ⇒ Object
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
24
25
26
|
# File 'lib/active_mocker/active_record.rb', line 24
def self.primary_key=(primary_key)
@primary_key = primary_key
end
|
.table_name ⇒ Object
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
15
16
17
|
# File 'lib/active_mocker/active_record.rb', line 15
def self.table_name=(table_name)
@table_name = table_name
end
|