1
0
Fork 0
mirror of https://github.com/varvet/pundit.git synced 2022-11-09 12:30:11 -05:00

use new ruby syntax for install generator

Rubocop was showing a warning to use the new ruby syntax
This commit is contained in:
Corneliu Stanciu 2016-04-14 15:26:22 +02:00
parent 381a39e492
commit 7cee0f01a6

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?