Skip to content

Commit 3925995

Browse files
committed
use sidekiq/testing/inline to make sure delayed jobs will force execute in development env.
1 parent 6d1b999 commit 3925995

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

config/environments/development.rb

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
11
# coding: utf-8
2+
require 'sidekiq/testing/inline'
3+
24
Rails.application.configure do
35
# Settings specified here will take precedence over those in config/environment.rb
46

57
# In the development environment your application's code is reloaded on
68
# every request. This slows down response time but is perfect for development
79
# since you don't have to restart the webserver when you make code changes.
810
config.cache_classes = false
9-
11+
1012
config.eager_load = false
1113

1214
# Show full error reports and disable caching
@@ -25,7 +27,7 @@
2527
config.cache_store = [:dalli_store,"127.0.0.1", { namespace: "rb-cn", compress: true }]
2628

2729
config.assets.debug = false
28-
30+
2931
# Asset digests allow you to set far-future HTTP expiration dates on all assets,
3032
# yet still be able to expire them through the digest params.
3133
config.assets.digest = false
@@ -34,7 +36,7 @@
3436
# Checks for improperly declared sprockets dependencies.
3537
# Raises helpful error messages.
3638
config.assets.raise_runtime_errors = true
37-
39+
3840
# Raises error for missing translations
3941
# config.action_view.raise_on_missing_translations = true
4042
end
@@ -48,7 +50,7 @@
4850
files.each_with_index do |s,i|
4951
if times[i] > @last_api_change
5052
Rails.logger.debug " - #{s}"
51-
load s
53+
load s
5254
end
5355
end
5456

0 commit comments

Comments
 (0)