Sha256: 38734cf8a262807318fb8bfe6288adf9a0ab58049c1bd5dbe4dc8a3530335071
Contents?: true
Size: 515 Bytes
Versions: 2
Compression:
Stored size: 515 Bytes
Contents
class Inkling::Users::SessionsController < Devise::SessionsController layout nil after_filter :log, :only => [:create] before_filter :log, :only => [:destroy] private def log if params[:action] == "create" Inkling::Log.create!(:user => current_inkling_user, :text => "#{current_inkling_user.email} signed in.") elsif params[:action] == "destroy" Inkling::Log.create!(:user => current_inkling_user, :text => "#{current_inkling_user.email} signed out.") end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
inkling-0.1.0 | app/controllers/inkling/users/sessions_controller.rb |
inkling-0.0.9 | app/controllers/inkling/users/sessions_controller.rb |