class Logman::User
Public Instance Methods
buckets()
click to toggle source
buckets that user have access
# File lib/models/user.rb, line 25 def buckets return Bucket.all if self.admin Bucket.where(:user_ids=> self.id) end
serializable_hash(options={})
click to toggle source
Calls superclass method
# File lib/models/user.rb, line 32 def serializable_hash(options={}) options[:methods] ||= [:id] options[:except] ||= [:password_digest] super(options) end