File tree 1 file changed +12
-4
lines changed
1 file changed +12
-4
lines changed Original file line number Diff line number Diff line change @@ -341,7 +341,9 @@ class AdminPolicy
341
341
342
342
authorize :user
343
343
344
- def show? = user . name == "admin" || record != "admin"
344
+ def show?
345
+ user . name == "admin" || record != "admin"
346
+ end
345
347
end
346
348
347
349
class ChatPolicy < AdminPolicy
@@ -350,7 +352,9 @@ class ChatPolicy < AdminPolicy
350
352
351
353
authorize :user , :account
352
354
353
- def speak? = user . name == account
355
+ def speak?
356
+ user . name == account
357
+ end
354
358
end
355
359
356
360
class ChatChannel
@@ -382,9 +386,13 @@ def account
382
386
@account = @account ? @account . succ : "a"
383
387
end
384
388
385
- def implicit_authorization_target = self
389
+ def implicit_authorization_target
390
+ self
391
+ end
386
392
387
- def policy_class = ChatPolicy
393
+ def policy_class
394
+ ChatPolicy
395
+ end
388
396
end
389
397
390
398
class ChutChannel < ChatChannel
You can’t perform that action at this time.
0 commit comments