Module: ActiveType::NoTable
- Extended by:
- ActiveSupport::Concern
- Included in:
- Object
- Defined in:
- lib/active_type/no_table.rb,
lib/active_type/no_table.rb
Overview
Defined Under Namespace
Modules: ClassMethods
Classes: DummyConnection, DummySchemaCache
Instance Method Summary
collapse
Instance Method Details
#attribute_names ⇒ Object
41
42
43
|
# File 'lib/active_type/no_table.rb', line 41
def attribute_names
[]
end
|
50
51
52
53
|
# File 'lib/active_type/no_table.rb', line 50
def destroy
@destroyed = true
freeze
end
|
37
38
39
|
# File 'lib/active_type/no_table.rb', line 37
def id
nil
end
|
55
56
57
|
# File 'lib/active_type/no_table.rb', line 55
def reload
self
end
|
#transaction(&block) ⇒ Object
45
46
47
48
|
# File 'lib/active_type/no_table.rb', line 45
def transaction(&block)
@_current_transaction_records ||= []
yield
end
|