def authenticated_with_devise?(current_resource)
      devise_resource = resolve_value(_notification_devise_resource)
      unless current_resource.blank? or current_resource.is_a? devise_resource.class
        raise TypeError,
          "Different type of current resource #{current_resource.class} "\
          "with devise resource #{devise_resource.class} has been passed to #{self.class}##{__method__}. "\
          "You have to override #{self.class}##{__method__} method or set devise_resource in acts_as_target."
      end
      current_resource.present? && current_resource == devise_resource
    end
def authenticated_with_devise?(current_resource)
      devise_resource = resolve_value(_notification_devise_resource)
      unless current_resource.blank? or current_resource.is_a? devise_resource.class
        raise TypeError,
          "Different type of current resource #{current_resource.class} "\
          "with devise resource #{devise_resource.class} has been passed to #{self.class}##{__method__}. "\
          "You have to override #{self.class}##{__method__} method or set devise_resource in acts_as_target."
      end
      current_resource.present? && current_resource == devise_resource
    end
Returns if current resource signed in with Devise is authenticated for the notification.
 This method is able to be overriden.

 @param [Object] current_resource Current resource signed in with Devise
 @return [Boolean] If current resource signed in with Devise is authenticated for the notification