Skip to content

Commit

Permalink
Guarded config information about Lookbook to only development environ…
Browse files Browse the repository at this point in the history
…ment
  • Loading branch information
lucianghinda committed Sep 13, 2023
1 parent 264df84 commit 9c4520d
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions config/application.rb
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,11 @@ class Application < Rails::Application
#
# config.time_zone = "Central Time (US & Canada)"
# config.eager_load_paths << Rails.root.join("extras")
config.lookbook.project_name = "Ruby and Rails Info Preview"
config.lookbook.component_paths << "app/views/components"
config.lookbook.preview_layout = "component_preview"

if Rails.env.development?
config.lookbook.project_name = "Ruby and Rails Info Preview"
config.lookbook.component_paths << "app/views/components"
config.lookbook.preview_layout = "component_preview"
end
end
end

0 comments on commit 9c4520d

Please sign in to comment.