Class: HighVoltage::RouteDrawers::Root

Inherits:
Object
  • Object
show all
Defined in:
lib/high_voltage/route_drawers/root.rb

Overview

Matches routes from root of the domain e.g. www.example.com/about_us Uses HighVoltage::Constraints::RootRoute to validate view exists.

Class Method Summary collapse

Class Method Details

.match_attributesObject


6
7
8
9
10
11
12
13
# File 'lib/high_voltage/route_drawers/root.rb', line 6

def self.match_attributes
  {
    "/*id" => 'high_voltage/pages#show',
    :as => :page,
    :format => false,
    :constraints => HighVoltage::Constraints::RootRoute
  }
end