:numericality => { :on => :update, :only_integer => true }
validates :version, :presence => true,
:numericality => { :only_integer => true }
- validates :changeset_id, :presence => true,
- :numericality => { :only_integer => true }
validates :timestamp, :presence => true
validates :changeset, :associated => true
validates :visible, :inclusion => [true, false]
end
def tags
- @tags ||= way_tags.collect { |t| [t.k, t.v] }.to_h
+ @tags ||= way_tags.to_h { |t| [t.k, t.v] }
end
attr_writer :nds, :tags