Class: ActsPermissive::Circle

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

Instance Method Summary collapse

Instance Method Details

#itemsObject



18
19
20
# File 'lib/acts_permissive/circle.rb', line 18

def items
  Circling.items_in self
end

#usersObject



22
23
24
# File 'lib/acts_permissive/circle.rb', line 22

def users
  Grouping.by_circle(self).map{|c| c.permissible }.compact
end