File: time_inflector.rb

package info (click to toggle)
ruby-devise 4.8.1-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 752 kB
  • sloc: ruby: 3,877; sh: 24; makefile: 11
file content (16 lines) | stat: -rw-r--r-- 299 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# frozen_string_literal: true

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