module DataMapper::Shim
Constants
- BigInt
Placeholders for
DataMapper
types- Boolean
- Discriminator
- Json
- ParanoidDateTime
- RAISE_ON_UNHANDLED_OPTIONS
- Resource
- Serial
- Text
- Yaml
Serializable classes
Public Instance Methods
attribute_dirty?(attribute)
click to toggle source
# File lib/data_mapper/shim.rb, line 66 def attribute_dirty?(attribute) changed_attributes.has_key?(attribute.to_s) end
attribute_get(name)
click to toggle source
Mischellaneous helpers
# File lib/data_mapper/shim.rb, line 58 def attribute_get(name) read_attribute(name) end
attribute_set(name, value)
click to toggle source
# File lib/data_mapper/shim.rb, line 62 def attribute_set(name, value) write_attribute(name, value) end
dirty?()
click to toggle source
# File lib/data_mapper/shim.rb, line 70 def dirty? changed? end
original_values()
click to toggle source
# File lib/data_mapper/shim.rb, line 90 def original_values OriginalValues.new(self) end