Class: AlternateValue

Inherits:
ActiveRecord::Base
  • Object
show all
Includes:
Housekeeping::Users
Defined in:
app/models/alternate_value.rb

Direct Known Subclasses

Abbreviation, Synonym, Translation

Defined Under Namespace

Classes: Abbreviation, Synonym, Translation

Instance Method Summary collapse

Methods included from Housekeeping::Users

#alive?, #set_created_by_id, #set_updated_by_id

Instance Method Details

#original_valueObject



14
15
16
17
18
# File 'app/models/alternate_value.rb', line 14

def original_value
  (self.alternate_object_attribute && self.alternate_object && self.alternate_object.respond_to?(
      self.alternate_object_attribute.to_sym) )  ?
      self.alternate_object.send(self.alternate_object_attribute.to_sym)  : nil
end