end
end
- def rss_link_to(*args)
- link_to(image_tag("RSS.png", :size => "16x16", :border => 0), Hash[*args], :class => "rsssmall")
+ def rss_link_to(args = {})
+ link_to(image_tag("RSS.png", :size => "16x16", :border => 0), args, :class => "rsssmall")
end
- def atom_link_to(*args)
- link_to(image_tag("RSS.png", :size => "16x16", :border => 0), Hash[*args], :class => "rsssmall")
+ def atom_link_to(args = {})
+ link_to(image_tag("RSS.png", :size => "16x16", :border => 0), args, :class => "rsssmall")
end
def richtext_area(object_name, method, options = {})
end
def tags
- @tags ||= Hash[node_tags.collect { |t| [t.k, t.v] }]
+ @tags ||= node_tags.collect { |t| [t.k, t.v] }.to_h
end
attr_writer :tags
end
def tags
- @tags ||= Hash[old_tags.collect { |t| [t.k, t.v] }]
+ @tags ||= old_tags.collect { |t| [t.k, t.v] }.to_h
end
attr_writer :tags
end
def tags
- @tags ||= Hash[old_tags.collect { |t| [t.k, t.v] }]
+ @tags ||= old_tags.collect { |t| [t.k, t.v] }.to_h
end
attr_writer :members, :tags
end
def tags
- @tags ||= Hash[old_tags.collect { |t| [t.k, t.v] }]
+ @tags ||= old_tags.collect { |t| [t.k, t.v] }.to_h
end
attr_writer :nds, :tags
end
def tags
- @tags ||= Hash[relation_tags.collect { |t| [t.k, t.v] }]
+ @tags ||= relation_tags.collect { |t| [t.k, t.v] }.to_h
end
attr_writer :members, :tags
end
def tags
- @tags ||= Hash[way_tags.collect { |t| [t.k, t.v] }]
+ @tags ||= way_tags.collect { |t| [t.k, t.v] }.to_h
end
attr_writer :nds, :tags