module ActiveType::NoTable
Rails 5+
Public Instance Methods
attribute_names()
click to toggle source
# File lib/active_type/no_table.rb, line 41 def attribute_names [] end
destroy()
click to toggle source
# File lib/active_type/no_table.rb, line 50 def destroy @destroyed = true freeze end
id()
click to toggle source
# File lib/active_type/no_table.rb, line 37 def id nil end
reload()
click to toggle source
# File lib/active_type/no_table.rb, line 55 def reload self end
transaction() { || ... }
click to toggle source
# File lib/active_type/no_table.rb, line 45 def transaction(&block) @_current_transaction_records ||= [] yield end
Private Instance Methods
_create_record(*)
click to toggle source
# File lib/active_type/no_table.rb, line 79 def _create_record(*) @new_record = false true end
_update_record(*)
click to toggle source
# File lib/active_type/no_table.rb, line 84 def _update_record(*) true end
create(*)
click to toggle source
# File lib/active_type/no_table.rb, line 62 def create(*) true end
create_record(*)
click to toggle source
# File lib/active_type/no_table.rb, line 71 def create_record(*) true end
update(*)
click to toggle source
# File lib/active_type/no_table.rb, line 66 def update(*) true end
update_record(*)
click to toggle source
# File lib/active_type/no_table.rb, line 75 def update_record(*) true end