Sha256: f2b845f937b22be4808e81e89d9b666b4930f63e64b04100d973ba0c40c52b07

Contents?: true

Size: 456 Bytes

Versions: 5

Compression:

Stored size: 456 Bytes

Contents

module HighVoltage
  module RouteDrawers
    # Matches routes from root of the domain e.g. http://www.example.com/about_us
    # Uses HighVoltage::Constraints::RootRoute to validate view exists.
    class Root
      def self.match_attributes
        {
          "/*id" => 'high_voltage/pages#show',
          :as => :page,
          :format => false,
          :constraints => HighVoltage::Constraints::RootRoute.new,
        }
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
high_voltage-4.0.0 lib/high_voltage/route_drawers/root.rb
high_voltage-4.0.0.rc1 lib/high_voltage/route_drawers/root.rb
high_voltage-3.1.2 lib/high_voltage/route_drawers/root.rb
high_voltage-3.1.1 lib/high_voltage/route_drawers/root.rb
high_voltage-3.1.0 lib/high_voltage/route_drawers/root.rb