aboutsummaryrefslogtreecommitdiffstats
path: root/app/models/chouette/footnote.rb
blob: 1664faf237f61e79394ccb6800bbfd3404659339 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
class Chouette::Footnote < Chouette::ActiveRecord
  include ChecksumSupport

  belongs_to :line, inverse_of: :footnotes
  has_and_belongs_to_many :vehicle_journeys, :class_name => 'Chouette::VehicleJourney'

  validates_presence_of :line

  def checksum_attributes
    attrs = ['code', 'label']
    self.slice(*attrs).values
  end
end