Module: TPhases::Modes::CollectMode::ClassMethods
- Defined in:
- lib/tphases/modes/collect_mode.rb
Instance Attribute Summary collapse
-
#violations ⇒ Object
Returns the value of attribute violations.
Instance Method Summary collapse
-
#cleaned_call_stack(call_stack) ⇒ Object
taken from github.com/rails/rails/blob/77977f34a5a4ea899f59e31ad869b582285fa5c1/actionpack/lib/action_dispatch/middleware/show_exceptions.rb#L148 : shows a cleaned stack for Rails apps by default.
Instance Attribute Details
#violations ⇒ Object
Returns the value of attribute violations.
22 23 24 |
# File 'lib/tphases/modes/collect_mode.rb', line 22 def violations @violations end |
Instance Method Details
#cleaned_call_stack(call_stack) ⇒ Object
taken from github.com/rails/rails/blob/77977f34a5a4ea899f59e31ad869b582285fa5c1/actionpack/lib/action_dispatch/middleware/show_exceptions.rb#L148 : shows a cleaned stack for Rails apps by default
76 77 78 79 80 |
# File 'lib/tphases/modes/collect_mode.rb', line 76 def cleaned_call_stack(call_stack) defined?(::Rails) && ::Rails.respond_to?(:backtrace_cleaner) ? ::Rails.backtrace_cleaner.clean(call_stack, :silent) : call_stack end |