Module: FreedomPatches::Rails4

Defined in:
lib/freedom_patches/rails4.rb

Class Method Summary collapse

Class Method Details

.distance_of_time_in_words(*args) ⇒ Object



5
6
7
8
9
10
11
12
13
14
# File 'lib/freedom_patches/rails4.rb', line 5

def self.distance_of_time_in_words(*args)
  Discourse.deprecate(
    "FreedomPatches::Rails4.distance_of_time_in_words has moved to AgeWords.distance_of_time_in_words",
    output_in_test: true,
    since: "3.1.0.beta5",
    drop_from: "3.2.0.beta1",
  )

  AgeWords.distance_of_time_in_words(*args)
end

.time_ago_in_words(*args) ⇒ Object



16
17
18
19
20
21
22
23
24
25
# File 'lib/freedom_patches/rails4.rb', line 16

def self.time_ago_in_words(*args)
  Discourse.deprecate(
    "FreedomPatches::Rails4.time_ago_in_words has moved to AgeWords.time_ago_in_words",
    output_in_test: true,
    since: "3.1.0.beta5",
    drop_from: "3.2.0.beta1",
  )

  AgeWords.time_ago_in_words(*args)
end