We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6f56a4a commit 71d5465Copy full SHA for 71d5465
README.adoc
@@ -1860,6 +1860,17 @@ Time.zone.now + 2.days
1860
2.days.from_now
1861
----
1862
1863
+Use an instance of `ActiveSupport::Duration` as a receiver to calculate relative time.
1864
+
1865
+[source,ruby]
1866
+----
1867
+# bad - It's confusing to read
1868
+created_at.since(1.minute)
1869
1870
+# good
1871
+1.minute.since(created_at)
1872
1873
1874
== Bundler
1875
1876
=== Dev/Test Gems [[dev-test-gems]]
0 commit comments