Sha256: 833913c133b3e2c31ca1de8ff863343ea5aacd60bd4147606ecdb4a1757922b9

Contents?: true

Size: 420 Bytes

Versions: 4

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

4 entries across 4 versions & 1 rubygems

Version Path
voltron-notify-0.2.0 lib/voltron/notify/action_dispatch/routes.rb
voltron-notify-0.1.9 lib/voltron/notify/action_dispatch/routes.rb
voltron-notify-0.2.2 lib/voltron/notify/action_dispatch/routes.rb
voltron-notify-0.2.1 lib/voltron/notify/action_dispatch/routes.rb