Module: ActiveType::NoTable
Defined Under Namespace
Modules: ClassMethods
Instance Method Summary collapse
- #attribute_names ⇒ Object
- #create ⇒ Object
- #create_record ⇒ Object
- #destroy ⇒ Object
- #id ⇒ Object
- #reload ⇒ Object
- #transaction(&block) ⇒ Object
- #update ⇒ Object
- #update_record ⇒ Object
Instance Method Details
#attribute_names ⇒ Object
33 34 35 |
# File 'lib/active_type/no_table.rb', line 33 def attribute_names [] end |
#create ⇒ Object
42 43 44 |
# File 'lib/active_type/no_table.rb', line 42 def create(*) true end |
#create_record ⇒ Object
46 47 48 |
# File 'lib/active_type/no_table.rb', line 46 def create_record(*) true end |
#destroy ⇒ Object
58 59 60 61 |
# File 'lib/active_type/no_table.rb', line 58 def destroy @destroyed = true freeze end |
#id ⇒ Object
29 30 31 |
# File 'lib/active_type/no_table.rb', line 29 def id nil end |
#reload ⇒ Object
63 64 65 |
# File 'lib/active_type/no_table.rb', line 63 def reload self end |
#transaction(&block) ⇒ Object
37 38 39 40 |
# File 'lib/active_type/no_table.rb', line 37 def transaction(&block) @_current_transaction_records ||= [] yield end |
#update ⇒ Object
50 51 52 |
# File 'lib/active_type/no_table.rb', line 50 def update(*) true end |
#update_record ⇒ Object
54 55 56 |
# File 'lib/active_type/no_table.rb', line 54 def update_record(*) true end |