class Rails::NaranyaId::Railtie
Hooks NaranyaId
into Rails
3 and higher.
@since 2.0.0
Public Instance Methods
handle_configuration_error(e)
click to toggle source
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.
@since 3.0.0
# File lib/naranya_id/railtie.rb, line 128 def handle_configuration_error(e) puts "There is a configuration error with the current naranya_id.yml." puts e.message end