Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

We’re showing branches in this repository, but you can also compare across forks.

...
  • 2 commits
  • 3 files changed
  • 0 commit comments
  • 1 contributor
1  .gitignore
View
@@ -22,7 +22,6 @@ config/*.yml
config/application.god
config/compass.config
!config/widgets.yml
-!config/resque_schedule.yml
!config/cucumber.yml
!config/asset_packages.yml
config/deploy/*.rb
5 config/initializers/resque.rb
View
@@ -25,7 +25,10 @@
end
require 'resque_scheduler'
-Resque.schedule = YAML.load_file(File.join(rails_root, 'config/resque_schedule.yml'))
+resque_schedule_base_file = rails_root + '/config/resque_schedule.yml'
+resque_schedule_file = File.exists?(resque_schedule_base_file) ? resque_schedule_base_file : (resque_schedule_base_file + '.sample')
+resque_schedule_config = YAML.load_file(resque_schedule_file)
+Resque.schedule = resque_schedule_config
begin
NotificationWorker.class
0  config/resque_schedule.yml → config/resque_schedule.yml.sample
View
File renamed without changes

No commit comments for this range

Something went wrong with that request. Please try again.