Module: Tr8nClientSdk::ActionControllerExtension
- Defined in:
- lib/tr8n_client_sdk/extensions/action_controller_extension.rb
Defined Under Namespace
Modules: InstanceMethods
Class Method Summary collapse
Class Method Details
.included(base) ⇒ Object
35 36 37 38 39 40 41 42 43 44 45 46 47 48 |
# File 'lib/tr8n_client_sdk/extensions/action_controller_extension.rb', line 35 def self.included(base) base.send(:include, Tr8nClientSdk::ActionCommonMethods) base.send(:include, InstanceMethods) base.before_filter :tr8n_init_client_sdk base.after_filter :tr8n_reset_client_sdk if defined? base.rescue_from base.rescue_from 'Tr8n::Exception' do |e| Tr8n.logger.error(e) Tr8n.logger.error(e.backtrace) Tr8n.session.reset raise e end end end |