Class: RespondForHelper::Flashes::Timestamp

Inherits:
Base
  • Object
show all
Defined in:
lib/respond_for_helper/flashes/timestamp.rb

Instance Method Summary collapse

Methods inherited from Base

#call

Constructor Details

#initialize(type, options = {}) ⇒ Timestamp

Returns a new instance of Timestamp.



6
7
8
9
# File 'lib/respond_for_helper/flashes/timestamp.rb', line 6

def initialize(type, options = {})
  super
  @options = options.reverse_merge(timestamp: I18n.l(now))
end