module RouteCounter
A recorder implements these class methods
* action_visited(controller_name, action_name) : record that it was visited * actions_visited : returns hash of url => count * rotate! : backup what was recorded and start counting again. returns hash. * clear! : clear everything out
A recorder implements these class methods
* action_visited(controller_name, action_name) : record that it was visited * actions_visited : returns hash of url => count * rotate! : backup what was recorded and start counting again. returns hash. * clear! : clear everything out
Constants
- VERSION
Public Class Methods
config()
click to toggle source
# File lib/route_counter.rb, line 13 def config @config ||= RouteCounter::Config.new end
Protected Class Methods
reset()
click to toggle source
# File lib/route_counter.rb, line 19 def reset # mostly for tests, resets eveything @config = nil end