Refactor epp routing

This commit is contained in:
Martin Lensment 2015-01-16 13:26:54 +02:00
parent fcc4477f68
commit db77334711
5 changed files with 95 additions and 8 deletions

View file

@ -30,9 +30,11 @@ module Registry
config.paths.add File.join('app', 'api'), glob: File.join('**', '*.rb')
config.autoload_paths += Dir[Rails.root.join('app', 'api', '*')]
# Active Record used to suppresses errors raised within
# `after_rollback`/`after_commit` callbacks and only printed them to the logs.
# In the next version, these errors will no longer be suppressed.
config.autoload_paths << Rails.root.join('lib')
# Active Record used to suppresses errors raised within
# `after_rollback`/`after_commit` callbacks and only printed them to the logs.
# In the next version, these errors will no longer be suppressed.
# Instead, the errors will propagate normally just like in other Active Record callbacks.
config.active_record.raise_in_transactional_callbacks = true