Sha256: 1269dcdad403404320aa31a895bcdf5c220850c143c372d2278ebdfd0a0f44cb

Contents?: true

Size: 451 Bytes

Versions: 11

Compression:

Stored size: 451 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
        }
      end
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
high_voltage-3.0.0 lib/high_voltage/route_drawers/root.rb
high_voltage-2.4.0 lib/high_voltage/route_drawers/root.rb
high_voltage-2.3.0 lib/high_voltage/route_drawers/root.rb
high_voltage-2.2.1 lib/high_voltage/route_drawers/root.rb
high_voltage-2.2.0 lib/high_voltage/route_drawers/root.rb
high_voltage-2.1.0 lib/high_voltage/route_drawers/root.rb
high_voltage-2.0.0 lib/high_voltage/route_drawers/root.rb
high_voltage-1.2.4 lib/high_voltage/route_drawers/root.rb
high_voltage-1.2.3 lib/high_voltage/route_drawers/root.rb
high_voltage-1.2.2 lib/high_voltage/route_drawers/root.rb
high_voltage-1.2.1 lib/high_voltage/route_drawers/root.rb