Module: ActsPermissive::PermissiveObject::ActiveRecordSafeMethods

Defined in:
lib/acts_permissive/permissive_object.rb

Instance Method Summary collapse

Instance Method Details

#add_to(*args) ⇒ Object



64
65
66
# File 'lib/acts_permissive/permissive_object.rb', line 64

def add_to *args
  args.each{|c| self.circles << c}
end

#remove_from(*args) ⇒ Object



68
69
70
# File 'lib/acts_permissive/permissive_object.rb', line 68

def remove_from *args
  args.each{|c| self.circles.delete c}
end