Sha256: 85f872b0ca365e103f7f21e7fd19d0dfd33a15322cb12996854829e971e60918
Contents?: true
Size: 430 Bytes
Versions: 12
Compression:
Stored size: 430 Bytes
Contents
class ApplicationController < ActionController::Base protect_from_forgery before_filter :record_event protected def record_event payload = { :user_start_date => Time.now - 1.month, :user_id => 5, :controller => params[:controller], :action => params[:action] } ActiveSupport::Notifications.instrument("cohortly.event", payload) end end
Version data entries
12 entries across 12 versions & 1 rubygems