Sha256: c7d8382a1c7109d2cf7c2bd00a957cbd5cc55be3605c1211e5f4ec1584bb706b
Contents?: true
Size: 446 Bytes
Versions: 5
Compression:
Stored size: 446 Bytes
Contents
class Chouette::TimeTableDate < Chouette::ActiveRecord set_primary_key :id belongs_to :time_table 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 def self.model_name ActiveModel::Name.new Chouette::TimeTableDate, Chouette, "TimeTableDate" end end
Version data entries
5 entries across 5 versions & 1 rubygems