Fix most auto-correctable rubocop issues
This commit is contained in:
parent
34e3e51456
commit
ef7f3d800c
206 changed files with 2925 additions and 3473 deletions
|
@ -1,7 +1,7 @@
|
|||
class UserRole < ActiveRecord::Base
|
||||
belongs_to :user
|
||||
|
||||
ALL_ROLES = ['administrator', 'moderator']
|
||||
ALL_ROLES = %w(administrator moderator)
|
||||
|
||||
validates_inclusion_of :role, :in => ALL_ROLES
|
||||
validates_uniqueness_of :role, :scope => :user_id
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue