Closed davydovanton closed 5 years ago
Let's try to create only after_call_callback for broadcasting notifications for any frameworks:
after_call_callback
abilities = Kan::Application.new( post: Post::Abilities.new(after_call_callback: -> (ability_name, payload) { ... }), comment: Comments::Abilities.new ) abilities['post.read'].call(current_user, post) # => true abilities['post.delete'].call(current_user, post) # => false abilities['comment.delete'].call(current_user, post) # => false
Let's try to create only
after_call_callback
for broadcasting notifications for any frameworks: