Last active
December 21, 2015 10:19
-
-
Save thenoseman/6291122 to your computer and use it in GitHub Desktop.
Debugging before_filters in rails
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
> bundle open activesupport | |
open lib/active_support/callbacks.rb | |
Below ~ line 188 (result = result = #{@filter}) -> | |
Rails.logger.info "[callbacks] executing BEFORE :#{@filter} from inside #{@klass}" if defined?(Rails) | |
Below ~ line 239 -> | |
Rails.logger.info "[callbacks] executing AFTER :#{@filter} from inside #{@klass}" | |
so that it looks like this: | |
if #{@compiled_options} | |
#{@filter} | |
Rails.logger.info "[callbacks] executing AFTER :#{@filter} from inside #{@klass}" if defined?(Rails) | |
end | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment