def create_options(resource, options = {}, except_actions = [])
        # Check resources if it includes target module
        resources_name = resource.to_s.pluralize.underscore
        options[:model] ||= resources_name.to_sym
        if options[:with_devise].present?
          options[:controller] ||= "activity_notification/#{resources_name}_with_devise"
          options[:as]         ||= resources_name
          # Check devise configuration in model
          options[:devise_defaults] = { devise_type: options[:with_devise].to_s }
          options[:devise_defaults] = options[:devise_defaults].merge(options.slice(:devise_default_routes))
        else
          options[:controller] ||= "activity_notification/#{resources_name}"
          options[:devise_defaults] = {}
        end
        (options[:except] ||= []).concat(except_actions)
        if options[:with_subscription].present?
          options[:subscription_option] = (options[:with_subscription].is_a?(Hash) ? options[:with_subscription] : {})
                                            .merge(options.slice(:with_devise, :devise_default_routes, :routing_scope))
        end
        # Support other options like :as, :path_prefix, :path_names ...
        options
      end
def create_options(resource, options = {}, except_actions = [])
        # Check resources if it includes target module
        resources_name = resource.to_s.pluralize.underscore
        options[:model] ||= resources_name.to_sym
        if options[:with_devise].present?
          options[:controller] ||= "activity_notification/#{resources_name}_with_devise"
          options[:as]         ||= resources_name
          # Check devise configuration in model
          options[:devise_defaults] = { devise_type: options[:with_devise].to_s }
          options[:devise_defaults] = options[:devise_defaults].merge(options.slice(:devise_default_routes))
        else
          options[:controller] ||= "activity_notification/#{resources_name}"
          options[:devise_defaults] = {}
        end
        (options[:except] ||= []).concat(except_actions)
        if options[:with_subscription].present?
          options[:subscription_option] = (options[:with_subscription].is_a?(Hash) ? options[:with_subscription] : {})
                                            .merge(options.slice(:with_devise, :devise_default_routes, :routing_scope))
        end
        # Support other options like :as, :path_prefix, :path_names ...
        options
      end
Create options for routing
 @api private
 @todo Check resources if it includes target module
 @todo Check devise configuration in model
 @todo Support other options like :as, :path_prefix, :path_names ...

 @param [Symbol] resource Name of the resource model
 @param [Hash] options Passed options from notify_to or subscribed_by
 @param [Hash] except_actions Actions in [:index, :show, :new, :create, :edit, :update, :destroy] to remove routes
 @return [Hash] Options to create routes