Replies: 1 comment
-
Solved it by moving the require from initializer into config/applicaiton.rb # In config/application.rb
class Application < Rails::Application
.....
if !Rails.env.test? && ENV['NO_LOOKBOOK'] != '1'
require 'lookbook'
end
....
end |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Is there a way to manually require/load lookbook ?
We currently do the following:
e.g
However, this doesn't seem to work. Even when the condition evaluates to true, /super_admin/lookbook still 404s.
Always requiring does work.
Am I missing something? Do I have to explicitly require something some other way?
Beta Was this translation helpful? Give feedback.
All reactions