Class: Rails::Diametric::Railtie
- Inherits:
-
Railtie
- Object
- Railtie
- Rails::Diametric::Railtie
- Defined in:
- lib/diametric/railtie.rb
Instance Method Summary collapse
-
#handle_configuration_error(e) ⇒ Object
Rails runs all initializers first before getting into any generator code, so we have no way in the initializer to know if we are generating a diametric.yml.
Instance Method Details
#handle_configuration_error(e) ⇒ Object
Rails runs all initializers first before getting into any generator code, so we have no way in the initializer to know if we are generating a diametric.yml. So instead of failing, we catch all the errors and print them out.
46 47 48 49 |
# File 'lib/diametric/railtie.rb', line 46 def handle_configuration_error(e) puts "There is a configuration error with the current diametric.yml." puts e. end |