include ConsistencyValidations
include NotRedactable
- include ObjectMetadata
self.table_name = "current_ways"
: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 ||= Hash[way_tags.collect { |t| [t.k, t.v] }]
+ @tags ||= way_tags.to_h { |t| [t.k, t.v] }
end
attr_writer :nds, :tags