Class: Lesli::User

Inherits:
ApplicationLesliRecord show all
Includes:
UserExtensions, LesliShield::UserSecurity
Defined in:
app/models/lesli/user.rb

Constant Summary

Constants inherited from ApplicationLesliRecord

ApplicationLesliRecord::CHARSET

Instance Method Summary collapse

Methods included from UserExtensions

#full_name, #full_name_initials, #locale, #log, #name, #role_names

Instance Method Details

#save(*args) ⇒ Object

allow save duplicated users to execute callbacks



81
82
83
84
# File 'app/models/lesli/user.rb', line 81

def save(*args)
    super()
    rescue ActiveRecord::RecordNotUnique => error
end