Rubocop autofixes.
This commit is contained in:
parent
e6f06f0515
commit
38e12759ea
16 changed files with 56 additions and 69 deletions
|
@ -1,6 +1,6 @@
|
|||
xml.instruct!
|
||||
|
||||
xml.rss("version" => "2.0",
|
||||
xml.rss("version" => "2.0",
|
||||
"xmlns:dc" => "http://purl.org/dc/elements/1.1/",
|
||||
"xmlns:geo" => "http://www.w3.org/2003/01/geo/wgs84_pos#",
|
||||
"xmlns:georss" => "http://www.georss.org/georss") do
|
||||
|
@ -25,14 +25,14 @@ xml.rss("version" => "2.0",
|
|||
xml.guid url_for(:controller => :trace, :action => :view, :id => trace.id, :display_name => trace.user.display_name, :only_path => false)
|
||||
|
||||
xml.description do
|
||||
xml.cdata! render(:partial => "description", :object => trace, :formats => [ :html ])
|
||||
xml.cdata! render(:partial => "description", :object => trace, :formats => [:html])
|
||||
end
|
||||
|
||||
xml.dc :creator, trace.user.display_name
|
||||
|
||||
xml.pubDate trace.timestamp.to_s(:rfc822)
|
||||
|
||||
if trace.latitude and trace.longitude
|
||||
if trace.latitude && trace.longitude
|
||||
xml.geo :lat, trace.latitude
|
||||
xml.geo :long, trace.longitude
|
||||
xml.georss :point, "#{trace.latitude} #{trace.longitude}"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue