Sha256: a73d9503bdb93bd4008f66f3be0c10dbdb4fc888ac3fcb5f9e891aaed54ff7de

Contents?: true

Size: 420 Bytes

Versions: 3

Compression:

Stored size: 420 Bytes

Contents

module Voltron
  module Notify
    module Routes

      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

    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
voltron-notify-0.1.6 lib/voltron/notify/action_dispatch/routes.rb
voltron-notify-0.1.8 lib/voltron/notify/action_dispatch/routes.rb
voltron-notify-0.1.7 lib/voltron/notify/action_dispatch/routes.rb