Skip to content

Commit

Permalink
extend readme with "not from a rake task" case
Browse files Browse the repository at this point in the history
gh-186
[ci skip]
  • Loading branch information
jmettraux committed May 5, 2016
1 parent 5914ea9 commit 7b44d48
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -1463,8 +1463,10 @@ require 'rufus-scheduler'
s = Rufus::Scheduler.singleton


unless defined?(Rails::Console)
unless defined?(Rails::Console) || File.split($0).last == 'rake'

# only schedule when not running from the Ruby on Rails console
# or from a rake task

s.every '1m' do

Expand Down

0 comments on commit 7b44d48

Please sign in to comment.