We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
since
ago
1 parent cc46154 commit a451ad1Copy full SHA for a451ad1
README.adoc
@@ -1865,12 +1865,12 @@ Use an instance of `ActiveSupport::Duration` as a receiver to calculate relative
1865
[source,ruby]
1866
----
1867
# bad - It's confusing to read
1868
-created_at.after(1.minute)
1869
-expiration_date.before(3.days)
+created_at.since(1.minute)
+expiration_date.ago(3.days)
1870
1871
# good
1872
-1.minute.after(created_at)
1873
-3.days.before(expiration_date)
+1.minute.since(created_at)
+3.days.ago(expiration_date)
1874
1875
1876
== Bundler
0 commit comments