Class: User

Inherits:
ApplicationRecord
  • Object
show all
Includes:
Hello::RailsActiveRecord::User, Authorization
Defined in:
app/models/user.rb,
lib/generators/hello/install/templates/models/user.rb

Defined Under Namespace

Modules: Authorization

Instance Method Summary collapse

Methods included from Authorization

#role_is?

Methods included from Hello::RailsActiveRecord::User

#as_json_web_api, #email, #email=, #in_any_role?, #password, #password=, #password_credential, #username=

Instance Method Details

#to_paramObject



5
6
7
# File 'lib/generators/hello/install/templates/models/user.rb', line 5

def to_param
  username
end