Sha256: 6f20b59c7a28d875f767b71ccc706af8a205e7246004cdbf8d485327e44ec8c3

Contents?: true

Size: 448 Bytes

Versions: 4

Compression:

Stored size: 448 Bytes

Contents

require 'exceptionally_beautiful/routing_constraint'

module ActionDispatch::Routing
  class Mapper
    def exceptionally_beautiful_routes
      match '(errors)/:status', :to => "#{ExceptionallyBeautiful.controller}##{ExceptionallyBeautiful.action}",
                                :constraints => ExceptionallyBeautiful::RoutingConstraint.new, :via => :all,
                                :as => :exceptionally_beautiful_error
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
exceptionally_beautiful-0.1.5 lib/exceptionally_beautiful/routes.rb
exceptionally_beautiful-0.1.4 lib/exceptionally_beautiful/routes.rb
exceptionally_beautiful-0.1.3 lib/exceptionally_beautiful/routes.rb
exceptionally_beautiful-0.1.2 lib/exceptionally_beautiful/routes.rb