module Avocado::UserCallbacks
Private Instance Methods
create_event(action)
click to toggle source
# File lib/avocado/user_callbacks.rb, line 31 def create_event(action) events.create! action: action end
destroy_non_current_sessions()
click to toggle source
# File lib/avocado/user_callbacks.rb, line 39 def destroy_non_current_sessions sessions.non_current.destroy_all end
record_activity_email_update()
click to toggle source
# File lib/avocado/user_callbacks.rb, line 23 def record_activity_email_update create_event "email:update" end
record_activity_email_verified()
click to toggle source
# File lib/avocado/user_callbacks.rb, line 27 def record_activity_email_verified create_event "email:verified" end
record_activity_password_update()
click to toggle source
# File lib/avocado/user_callbacks.rb, line 19 def record_activity_password_update create_event "password:update" end
remove_email_verification()
click to toggle source
# File lib/avocado/user_callbacks.rb, line 35 def remove_email_verification self.verified = false end