diff options
author | Ciro Santilli <ciro.santilli@gmail.com> | 2014-10-19 12:50:23 +0400 |
---|---|---|
committer | Ciro Santilli <ciro.santilli@gmail.com> | 2014-10-19 13:12:39 +0400 |
commit | b66a1527356d808f418bab273f821c83a4365c90 (patch) | |
tree | c16192e9aa5e5ad5d3f53da594d2f1bd61cafa4f /app/services/base_service.rb | |
parent | 3880bb61760ef1f69b0df49148202ff6b4208f01 (diff) |
Factor abilities methods
in app controller, user model and services.
Diffstat (limited to 'app/services/base_service.rb')
-rw-r--r-- | app/services/base_service.rb | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/app/services/base_service.rb b/app/services/base_service.rb index ed286c04095..0d46eeaa18f 100644 --- a/app/services/base_service.rb +++ b/app/services/base_service.rb @@ -6,11 +6,7 @@ class BaseService end def abilities - @abilities ||= begin - abilities = Six.new - abilities << Ability - abilities - end + Ability.abilities end def can?(object, action, subject) |