Sha256: b8170f36d4292c7d4de856e0007c0d37d6f9fc9f302d04a1bd41f16820d9149d
Contents?: true
Size: 568 Bytes
Versions: 2
Compression:
Stored size: 568 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 after_update :update_parent def self.model_name ActiveModel::Name.new Chouette::TimeTableDate, Chouette, "TimeTableDate" end def update_parent time_table.shortcuts_update end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
ninoxe-1.1.1 | app/models/chouette/time_table_date.rb |
ninoxe-1.1.0 | app/models/chouette/time_table_date.rb |