Module: DHS::Record::Tracing::ClassMethods
- Defined in:
- lib/dhs/concerns/record/tracing.rb
Instance Method Summary collapse
-
#trace!(options = {}) ⇒ Object
Needs to be called directly from the first method (level) within DHS.
Instance Method Details
#trace!(options = {}) ⇒ Object
Needs to be called directly from the first method (level) within DHS
12 13 14 15 16 17 18 19 20 21 |
# File 'lib/dhs/concerns/record/tracing.rb', line 12 def trace!( = {}) return unless DHS.config.trace ( || {}).tap do || source = caller.detect do |source| !source.match?(%r{/lib/dhs}) && !source.match?(%r{internal\:}) end [:source] = source end end |