diff options
author | bogdanvlviv <bogdanvlviv@gmail.com> | 2016-10-27 00:13:15 +0300 |
---|---|---|
committer | bogdanvlviv <bogdanvlviv@gmail.com> | 2016-10-27 00:27:47 +0300 |
commit | 5faa9a235c46037a3b8e4f3308fd7ccadaae8039 (patch) | |
tree | ea89b18ff5cca42117dafa96c8772cc6e00d2227 /actionview/lib/action_view/helpers/atom_feed_helper.rb | |
parent | 0b4679f192a4892a6eb09bb6103d967408cfdc83 (diff) | |
download | rails-5faa9a235c46037a3b8e4f3308fd7ccadaae8039.tar.gz rails-5faa9a235c46037a3b8e4f3308fd7ccadaae8039.tar.bz2 rails-5faa9a235c46037a3b8e4f3308fd7ccadaae8039.zip |
Add missing `+` around a some literals.
Mainly around `nil`
[ci skip]
Diffstat (limited to 'actionview/lib/action_view/helpers/atom_feed_helper.rb')
-rw-r--r-- | actionview/lib/action_view/helpers/atom_feed_helper.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/actionview/lib/action_view/helpers/atom_feed_helper.rb b/actionview/lib/action_view/helpers/atom_feed_helper.rb index 09d243c46d..293662838f 100644 --- a/actionview/lib/action_view/helpers/atom_feed_helper.rb +++ b/actionview/lib/action_view/helpers/atom_feed_helper.rb @@ -163,7 +163,7 @@ module ActionView @xml, @view, @feed_options = xml, view, feed_options end - # Accepts a Date or Time object and inserts it in the proper format. If nil is passed, current time in UTC is used. + # Accepts a Date or Time object and inserts it in the proper format. If +nil+ is passed, current time in UTC is used. def updated(date_or_time = nil) @xml.updated((date_or_time || Time.now.utc).xmlschema) end @@ -174,7 +174,7 @@ module ActionView # # * <tt>:published</tt>: Time first published. Defaults to the created_at attribute on the record if one such exists. # * <tt>:updated</tt>: Time of update. Defaults to the updated_at attribute on the record if one such exists. - # * <tt>:url</tt>: The URL for this entry or false or nil for not having a link tag. Defaults to the polymorphic_url for the record. + # * <tt>:url</tt>: The URL for this entry or +false+ or +nil+ for not having a link tag. Defaults to the +polymorphic_url+ for the record. # * <tt>:id</tt>: The ID for this entry. Defaults to "tag:#{@view.request.host},#{@feed_options[:schema_date]}:#{record.class}/#{record.id}" # * <tt>:type</tt>: The TYPE for this entry. Defaults to "text/html". def entry(record, options = {}) |