Method: ActionView::Helpers::AtomFeedHelper::AtomFeedBuilder#updated

Defined in:
actionview/lib/action_view/helpers/atom_feed_helper.rb

#updated(date_or_time = nil) ⇒ Object

Accepts a Date or Time object and inserts it in the proper format. If nil is passed, current time in UTC is used.



167
168
169
# File 'actionview/lib/action_view/helpers/atom_feed_helper.rb', line 167

def updated(date_or_time = nil)
  @xml.updated((date_or_time || Time.now.utc).xmlschema)
end