Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Comparing changes

Choose two branches to see what's changed or to start a new pull request. If you need to, you can also compare across forks.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also compare across forks.
...
  • 2 commits
  • 3 files changed
  • 0 commit comments
  • 1 contributor
View
1  .gitignore
@@ -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
View
5 config/initializers/resque.rb
@@ -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
View
0  config/resque_schedule.yml → config/resque_schedule.yml.sample
File renamed without changes

No commit comments for this range

Something went wrong with that request. Please try again.