We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0ec3300 commit 08935a6Copy full SHA for 08935a6
lib/knock/engine.rb
@@ -1,6 +1,12 @@
1
module Knock
2
class Engine < ::Rails::Engine
3
config.eager_load_paths += Dir["#{config.root}/lib/**/"]
4
+ # https://github.com/nsarno/knock/issues/156
5
+ if ::Rails.const_defined? 'Generators'
6
+ config.eager_load_paths += Dir["#{config.root}/lib/**/"]
7
+ else
8
+ require_relative './authenticable'
9
+ end
10
isolate_namespace Knock
11
end
12
0 commit comments