Class: Tuttle::Presenters::ActiveSupport::Callbacks::CallbackWrapper

Inherits:
ActiveSupport::Callbacks::Callback
  • Object
show all
Defined in:
lib/tuttle/presenters/active_support/callbacks.rb

Instance Method Summary collapse

Instance Method Details

#safe_source_location(controller_instance) ⇒ Object



9
10
11
12
13
# File 'lib/tuttle/presenters/active_support/callbacks.rb', line 9

def safe_source_location(controller_instance)
  controller_instance.method(filter).try(:source_location)
rescue StandardError
  [nil, nil]
end