Class: User

Inherits:
ActiveRecord::Base
  • Object
show all
Defined in:
app/models/user.rb

Overview

Every application needs users. Right? This is that class.

Instance Method Summary collapse

Instance Method Details

#set_default_roleObject


6
7
8
# File 'app/models/user.rb', line 6

def set_default_role
  self.role ||= :user
end