We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f3ab499 commit ffbff20Copy full SHA for ffbff20
spec/dummy/config/environments/development.rb
@@ -85,5 +85,11 @@
85
# Uncomment if you wish to allow Action Cable access from any origin.
86
# config.action_cable.disable_request_forgery_protection = true
87
88
- BetterErrors::Middleware.allow_ip! '0.0.0.0/0'
+ BetterErrors::Middleware.allow_ip! '0.0.0.0/0' if defined?(BetterErrors)
89
+
90
+ if defined?(FactoryBot)
91
+ config.to_prepare do
92
+ FactoryBot.definition_file_paths << File.join(BetterTogether::Engine.root, 'spec', 'factories')
93
+ end
94
95
end
0 commit comments