Skip to content

Commit

Permalink
Add timestamps to User.
Browse files Browse the repository at this point in the history
  • Loading branch information
hanshasselberg committed Feb 9, 2012
1 parent a2d06a8 commit fcfb8c2
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions app/models/user.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
class User
include Mongoid::Document
include Mongoid::Timestamps
field :email, :type => String
field :password_hash, :type => String
field :password_salt, :type => String
Expand Down Expand Up @@ -37,4 +38,8 @@ def equipment_reservations
EquipmentReservation.where(user: _id)
end

# TODO: implement
def admin?
true
end
end

0 comments on commit fcfb8c2

Please sign in to comment.