🚨Fix Rubocop lint errors

This commit is contained in:
Pranav Raj S
2019-10-20 14:17:26 +05:30
committed by GitHub
parent dd018f3682
commit 94c6d6db6f
124 changed files with 774 additions and 914 deletions

View File

@@ -11,7 +11,7 @@ class ApplicationPolicy
end
def show?
scope.where(:id => record.id).exists?
scope.where(id: record.id).exists?
end
def create?

View File

@@ -1,5 +1,4 @@
class ContactPolicy < ApplicationPolicy
def index?
@user.administrator?
end
@@ -13,6 +12,6 @@ class ContactPolicy < ApplicationPolicy
end
def create?
true
true
end
end

View File

@@ -1,5 +1,4 @@
class UserPolicy < ApplicationPolicy
def index?
true
end