lib/minican/controller_additions.rb
def authorize!(method, object, user = current_user)
      policy = policy_for(object)

      if policy.cannot?(method, current_user)
        raise Minican::AccessDenied.new(policy)
      end
    end
def authorize!(method, object, user = current_user)
      policy = policy_for(object)

      if policy.cannot?(method, current_user)
        raise Minican::AccessDenied.new(policy)
      end
    end
Controller helper method to verify call method on
 policy. Raises {Minican::AccessDenied} if the policy
 method fails

 @param method [Symbol] method to be called on the policy
 @param object [Object] The object to apply the policy to
 @param user [User] The user object to pass to the method

 @visibility public