app/controllers/guide/base_controller.rb in guide-0.3.2 vs app/controllers/guide/base_controller.rb in guide-0.4.0

- old
+ new

@@ -2,15 +2,15 @@ helper Rails.application.routes.url_helpers layout 'guide/application' private - around_filter :set_locale + around_action :set_locale def set_locale I18n.with_locale(diplomat.negotiate_locale) { yield } end - around_filter :handle_known_errors + around_action :handle_known_errors def handle_known_errors begin yield rescue Guide::Errors::Base => error raise error if Rails.env.development?