blob: 57ef9f7ca843fb8d044514c2e9c62ceb835e59bf (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
class ReferentialMetadata < ActiveRecord::Base
belongs_to :referential
belongs_to :referential_source, class_name: 'Referential'
has_array_of :lines, class_name: 'Chouette::Line'
def self.new_from from
ReferentialMetadata.new({
referential_source: from.referential_source,
line_ids: from.line_ids,
periodes: from.periodes
})
end
end
|