app/models/record.rb
# returns the revision before this one.
returns the revision before this one.
returns the revision before this one .
def prior_revision_record
    prior_record = nil
    records = self.recordable.get_records(false)
    records.each do |record|
      break if self.id == record.id
      prior_record = record
    end
    prior_record
  end
def prior_revision_record prior_record = nil records = self . recordable . get_records ( false ) records . each do | record | break if self . id == record . id prior_record = record end prior_record end
returns the revision before this one.
returns the revision before this one .