Fix rubocop warnings
This commit is contained in:
parent
2ef6a960d1
commit
8fe1899596
58 changed files with 500 additions and 488 deletions
|
@ -1,7 +1,7 @@
|
|||
class UserRole < ActiveRecord::Base
|
||||
belongs_to :user
|
||||
|
||||
ALL_ROLES = %w(administrator moderator)
|
||||
ALL_ROLES = %w(administrator moderator).freeze
|
||||
|
||||
validates :role, :inclusion => ALL_ROLES, :uniqueness => { :scope => :user_id }
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue