Skip to content

Commit

Permalink
Add lib folder to eager_load_paths
Browse files Browse the repository at this point in the history
rails 5 doesn't load autoload_paths in production
  • Loading branch information
sonalkr132 committed May 5, 2017
1 parent c8e07c0 commit 3a29ffe
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion config/application.rb
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ class Application < Rails::Application

config.plugins = [:dynamic_form]

config.autoload_paths << Rails.root.join('lib')
config.eager_load_paths << Rails.root.join('lib')
end

def self.config
Expand Down
1 change: 1 addition & 0 deletions lib/shoryuken/sqs_worker.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
require 'cgi'
require 'shoryuken'

class SqsWorker
include Shoryuken::Worker
Expand Down

0 comments on commit 3a29ffe

Please sign in to comment.