diff options
author | Douwe Maan <douwe@selenight.nl> | 2017-02-22 20:51:46 +0300 |
---|---|---|
committer | Douwe Maan <douwe@selenight.nl> | 2017-02-23 18:32:42 +0300 |
commit | 75f5fa997de148c9bc0e5bd6e6f6050526a0b164 (patch) | |
tree | e2fd6db5b1190817c062a8df20018dd00be68ce0 /app/policies/base_policy.rb | |
parent | 7d4b52b27dcbe30d85d4fad27e983cee51cf6677 (diff) |
Enable Rails/Delegate
Diffstat (limited to 'app/policies/base_policy.rb')
-rw-r--r-- | app/policies/base_policy.rb | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/app/policies/base_policy.rb b/app/policies/base_policy.rb index b9f1c29c32e..e07b144355a 100644 --- a/app/policies/base_policy.rb +++ b/app/policies/base_policy.rb @@ -6,9 +6,7 @@ class BasePolicy @cannot_set = cannot_set end - def size - to_set.size - end + delegate :size, to: :to_set def self.empty new(Set.new, Set.new) |