Run rubocop --fix-layout and remove encoding comments
This commit is contained in:
parent
fa63e6e81d
commit
ea2862fdef
283 changed files with 1164 additions and 1969 deletions
|
|
@ -1,4 +1,3 @@
|
|||
# encoding: utf-8
|
||||
# Groups organize the User.
|
||||
# A Member gets the roles from the Group
|
||||
class Group < ApplicationRecord
|
||||
|
|
@ -8,7 +7,7 @@ class Group < ApplicationRecord
|
|||
has_many :memberships, dependent: :destroy
|
||||
has_many :users, -> { where(deleted_at: nil) }, through: :memberships
|
||||
|
||||
validates :name, :presence => true, :length => {:in => 1..25}
|
||||
validates :name, :presence => true, :length => { :in => 1..25 }
|
||||
validates_uniqueness_of :name
|
||||
|
||||
attr_reader :user_tokens
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue