Skip to content

Commit f95f6a4

Browse files
author
Sergey Toy
committed
remove redundant comments
1 parent 5a0e178 commit f95f6a4

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

lib/core/app/policies/ros/application_policy.rb

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,8 @@ def initialize(user, record)
99
@record = record
1010
end
1111

12-
# UserPolicy.new({ policies: ['IamFullAccess'] }, nil).index?
1312
%i[new index show create update edit destroy].each do |method|
14-
define_method("#{method}?") { check_action(method) } # or send("#{method}?")
13+
define_method("#{method}?") { check_action(method) }
1514
end
1615

1716
def check_action(action)

0 commit comments

Comments
 (0)