module Voltron::Notify::Routes
Public Instance Methods
allow_notification_update(options={})
click to toggle source
# File lib/voltron/notify/action_dispatch/routes.rb, line 5 def allow_notification_update(options={}) path = (options[:path] || '/notification/update').gsub(/(^[\s\/]+)|([\s\/]+$)/, '') controller = (options[:controller] || 'voltron/notification') action = (options[:action] || 'update') post path, to: "#{controller}##{action}", as: :update_voltron_notification end