Class: Mintaka::RouteDrawers::Root

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

Overview

Matches routes from root of the domain e.g. www.example.com/about_us Uses Mintaka::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/mintaka/route_drawers/root.rb', line 6

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