Merge remote-tracking branch 'origin/master' into error-info

This commit is contained in:
Maximilian Grundke
2017-08-23 14:51:53 +02:00
14 changed files with 176 additions and 17 deletions

View File

@@ -12,7 +12,7 @@ class CommentPolicy < ApplicationPolicy
everyone
end
[:new?, :destroy?].each do |action|
[:new?, :destroy?, :update?].each do |action|
define_method(action) { admin? || author? }
end