Module: Permisi::Backend::ActiveRecord::Actor::ActorRolesCollectionProxy

Defined in:
lib/permisi/backend/active_record/actor.rb

Instance Method Summary collapse

Instance Method Details

#<<(new_role) ⇒ Object



47
48
49
50
51
# File 'lib/permisi/backend/active_record/actor.rb', line 47

def <<(new_role)
  super
rescue ::ActiveRecord::RecordNotUnique
  self
end

#delete(*records) ⇒ Object



53
54
55
56
# File 'lib/permisi/backend/active_record/actor.rb', line 53

def delete(*records)
  warn "WARNING: `#delete(*records)` won't invalidate the cache, use `#destroy(*records)` instead."
  super
end