Sha256: 715048eb443f6a1b9c510c4b0d97cb0617d0bbbaed4e13a349aee9ada891399f

Contents?: true

Size: 481 Bytes

Versions: 4

Compression:

Stored size: 481 Bytes

Contents

class Chouette::TimeTableDate < Chouette::ActiveRecord
  self.primary_key = "id"
  belongs_to :time_table, inverse_of: :dates
  acts_as_list :scope => 'time_table_id = #{time_table_id}',:top_of_list => 0

  validates_presence_of :date
  validates_uniqueness_of :date, :scope => :time_table_id

  # attr_accessible :date, :position, :time_table_id, :time_table, :in_out

  def self.model_name
    ActiveModel::Name.new Chouette::TimeTableDate, Chouette, "TimeTableDate"
  end

end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
ninoxe-1.2.3 app/models/chouette/time_table_date.rb
ninoxe-1.2.2 app/models/chouette/time_table_date.rb
ninoxe-1.2.1 app/models/chouette/time_table_date.rb
ninoxe-1.2.0 app/models/chouette/time_table_date.rb