class DataMapper::Shim::OriginalValues

Public Class Methods

new(model) click to toggle source
# File lib/data_mapper/shim.rb, line 75
def initialize(model)
  @model = model
end

Public Instance Methods

[](attribute) click to toggle source
# File lib/data_mapper/shim.rb, line 79
def [](attribute)
  @model.__send__ :"#{attribute}_was"
end