Module: RailsCallbackLog
- Defined in:
- lib/rails-callback_log.rb,
lib/rails_callback_log/version.rb
Defined Under Namespace
Modules: CallTemplateExtension, CallbackExtension
Constant Summary collapse
- FILTER =
Filtering is very expensive. It makes my test suite more than 50% slower. So, it’s off by default.
ENV["RAILS_CALLBACK_LOG_FILTER"].present?.freeze
- VERSION =
"0.2.1"
Class Method Summary collapse
Class Method Details
.gem_version ⇒ Object
6 7 8 |
# File 'lib/rails_callback_log/version.rb', line 6 def self.gem_version ::Gem::Version.new(VERSION) end |
.matches_filter?(str) ⇒ Boolean
12 13 14 |
# File 'lib/rails-callback_log.rb', line 12 def matches_filter?(str) source_location_filters.any? { |f| str.start_with?(f) } end |