Sha256: 47143c7a086520ef2467548d172bf646c0d7164ef79d26eb0124cd2cc01d7906

Contents?: true

Size: 252 Bytes

Versions: 4

Compression:

Stored size: 252 Bytes

Contents

# frozen_string_literal: true

module RespondForHelper
  module Flashes
    class Timestamp < Base
      def initialize(type, options = {})
        super
        @options = options.reverse_merge(timestamp: I18n.l(Time.now))
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
respond_for_helper-1.1.0 lib/respond_for_helper/flashes/timestamp.rb
respond_for_helper-1.0.2 lib/respond_for_helper/flashes/timestamp.rb
respond_for_helper-1.0.1 lib/respond_for_helper/flashes/timestamp.rb
respond_for_helper-1.0.0 lib/respond_for_helper/flashes/timestamp.rb