Cross Reference: user.rb
xref
: /
ontohub
/
app
/
models
/
user.rb
Home
History
Annotate
Line#
Navigate
Download
Search
only in
./
user.rb revision 0be38598001e15ea877bf3d4807e941159753df2
class
User
<
ActiveRecord
::
Base
include
User
::
Authentication
attr_accessible
:
email
, :
name
, :
admin
, :
password
, :
as
=> :
admin
def
to_s
name
? ?
name
:
email.split
(
"@"
)
.
first
end
def
delete
self.email
=
nil
self.password
=
nil
self.deleted
_at
=
Time.now
save
(:
validate
=>
false
)
end
end