Class: ActsPermissive::Grouping

Inherits:
ActiveRecord::Base
  • Object
show all
Defined in:
lib/acts_permissive/grouping.rb

Class Method Summary collapse

Class Method Details

.who_can_see(obj) ⇒ Object



33
34
35
# File 'lib/acts_permissive/grouping.rb', line 33

def self.who_can_see obj
  by_object(obj).map{|u| u.permissible}.compact
end