Skip to content

Commit d4443a2

Browse files
committed
Merge branch 'master' of github.com:seejohnrun/ice_cube
2 parents 4bf1718 + 7e100f2 commit d4443a2

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,13 @@ With ice_cube, you can specify (in increasing order of precedence):
4343
* Recurrence Times - To specifically include in a schedule
4444
* Exception Times - To specifically exclude from a schedule
4545

46-
Example: Specifying a recurrence with an exception time
46+
Example: Specifying a recurrence with an exception time. Requires "rails/activesupport" (`gem install 'activesupport'`).
47+
4748

4849
```ruby
50+
require 'ice_cube'
51+
require 'active_support/time'
52+
4953
schedule = IceCube::Schedule.new(now = Time.now) do |s|
5054
s.add_recurrence_rule(IceCube::Rule.daily.count(4))
5155
s.add_exception_time(now + 1.day)

0 commit comments

Comments
 (0)