Module: ReferenceTracking

Defined in:
lib/reference_tracking.rb,
lib/reference_tracking/tracker.rb,
lib/reference_tracking/version.rb,
lib/reference_tracking/ivar_proxy.rb,
lib/reference_tracking/references.rb,
lib/reference_tracking/action_controller.rb

Defined Under Namespace

Modules: ActionController, Tracker Classes: IvarProxy, References

Constant Summary collapse

TAGS_HEADER =
'rack-cache.tags'
PURGE_TAGS_HEADER =
'rack-cache.purge-tags'
VERSION =
"0.0.5"

Class Method Summary collapse

Class Method Details

.to_tag(object, method = nil) ⇒ Object



14
15
16
# File 'lib/reference_tracking.rb', line 14

def to_tag(object, method = nil)
  "#{object.class.name.underscore}-#{object.id}#{":#{method}" if method}"
end