aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWojciech Wnętrzak <w.wnetrzak@gmail.com>2012-04-02 23:43:47 +0200
committerWojciech Wnętrzak <w.wnetrzak@gmail.com>2012-04-02 23:43:47 +0200
commitf58ff6147311c1ce62d02a9d03f4f451281e49db (patch)
tree738f8454eda5e2666fafe551ff0d5dd3c09bbe76
parent87b30fb2e6536b893b6cc2553dad89df8356d7bb (diff)
downloadrails-f58ff6147311c1ce62d02a9d03f4f451281e49db.tar.gz
rails-f58ff6147311c1ce62d02a9d03f4f451281e49db.tar.bz2
rails-f58ff6147311c1ce62d02a9d03f4f451281e49db.zip
removed unnecessary block when using fetch
-rw-r--r--actionpack/lib/action_view/helpers/atom_feed_helper.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/lib/action_view/helpers/atom_feed_helper.rb b/actionpack/lib/action_view/helpers/atom_feed_helper.rb
index 70164217de..f9aa8d7cee 100644
--- a/actionpack/lib/action_view/helpers/atom_feed_helper.rb
+++ b/actionpack/lib/action_view/helpers/atom_feed_helper.rb
@@ -189,7 +189,7 @@ module ActionView
@xml.updated((options[:updated] || record.updated_at).xmlschema)
end
- type = options.fetch(:type) { 'text/html' }
+ type = options.fetch(:type, 'text/html')
@xml.link(:rel => 'alternate', :type => type, :href => options[:url] || @view.polymorphic_url(record))