Method: Rails::Mongoid::Railtie#handle_configuration_error
- Defined in:
- lib/mongoid/railtie.rb
#handle_configuration_error(e) ⇒ Object
Rails runs all initializers first before getting into any generator code, so we have no way in the intitializer to know if we are generating a mongoid.yml. So instead of failing, we catch all the errors and print them out.
100 101 102 103 |
# File 'lib/mongoid/railtie.rb', line 100 def handle_configuration_error(e) puts "There is a configuration error with the current mongoid.yml." puts e. end |