atzorvas/ccradio

View on GitHub
app/models/user.rb

Summary

Maintainability
A
0 mins
Test Coverage

Showing 7 of 7 total issues

Align the parameters of a method call if they span more than one line.
Open

:recoverable, :rememberable, :trackable, :validatable,
Severity: Minor
Found in app/models/user.rb by rubocop

Space missing after comma.
Open

user.password = Devise.friendly_token[0,20]
Severity: Minor
Found in app/models/user.rb by rubocop

Align the parameters of a method call if they span more than one line.
Open

:omniauthable, :omniauth_providers => [:wordpress_hosted]
Severity: Minor
Found in app/models/user.rb by rubocop

Redundant self detected.
Open

self.role && self.role.name == 'admin'
Severity: Minor
Found in app/models/user.rb by rubocop

Missing top-level class documentation comment.
Open

class User < ActiveRecord::Base
Severity: Minor
Found in app/models/user.rb by rubocop

Use the new Ruby 1.9 hash syntax.
Open

:omniauthable, :omniauth_providers => [:wordpress_hosted]
Severity: Minor
Found in app/models/user.rb by rubocop

Redundant self detected.
Open

self.role && self.role.name == 'admin'
Severity: Minor
Found in app/models/user.rb by rubocop
Category
Status