Sha256: fba9c7e0740ec24e39491aa18cf5380f2fb438403bb11132bfad2af83d243126

Contents?: true

Size: 270 Bytes

Versions: 34

Compression:

Stored size: 270 Bytes

Contents

require "active_support/core_ext/module/delegation"

module Devise
  class TimeInflector
    include ActionView::Helpers::DateHelper

    class << self
      attr_reader :instance
      delegate :time_ago_in_words, :to => :instance
    end

    @instance = new
  end
end

Version data entries

34 entries across 34 versions & 5 rubygems

Version Path
devise-3.2.2 lib/devise/time_inflector.rb
devise-3.2.1 lib/devise/time_inflector.rb
devise-3.1.2 lib/devise/time_inflector.rb
devise-3.0.4 lib/devise/time_inflector.rb
devise-2.2.8 lib/devise/time_inflector.rb
devise-3.2.0 lib/devise/time_inflector.rb
loyal_devise-2.2.6 lib/devise/time_inflector.rb
devise-3.1.1 lib/devise/time_inflector.rb
devise-3.1.0 lib/devise/time_inflector.rb
devise-2.2.7 lib/devise/time_inflector.rb
devise-3.0.3 lib/devise/time_inflector.rb
devise-3.1.0.rc2 lib/devise/time_inflector.rb
loyal_devise-2.2.5 lib/devise/time_inflector.rb
devise-2.2.6 lib/devise/time_inflector.rb
devise-3.0.2 lib/devise/time_inflector.rb
devise-3.0.1 lib/devise/time_inflector.rb
devise-2.2.5 lib/devise/time_inflector.rb
loyal_devise-2.1.10 lib/devise/time_inflector.rb
loyal_devise-2.1.7 lib/devise/time_inflector.rb
loyal_devise-2.1.6 lib/devise/time_inflector.rb