Sha256: 1f8eae0f05a07f45f8ada32ab9e08cdabf143771cc7ff14dd28302c9f7bc2193

Contents?: true

Size: 414 Bytes

Versions: 16

Compression:

Stored size: 414 Bytes

Contents

module HighVoltage
  module RouteDrawers
    # Matches routes in the HighVoltage.content_path directory. By default this looks
    # for /pages/id. e.g. http://www.example.com/pages/about_us
    class Default
      def self.match_attributes
        {
          "/#{HighVoltage.content_path}*id" => 'high_voltage/pages#show',
          :as => :page,
          :format => false
        }
      end
    end
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
high_voltage-4.0.0 lib/high_voltage/route_drawers/default.rb
high_voltage-4.0.0.rc1 lib/high_voltage/route_drawers/default.rb
high_voltage-3.1.2 lib/high_voltage/route_drawers/default.rb
high_voltage-3.1.1 lib/high_voltage/route_drawers/default.rb
high_voltage-3.1.0 lib/high_voltage/route_drawers/default.rb
high_voltage-3.0.0 lib/high_voltage/route_drawers/default.rb
high_voltage-2.4.0 lib/high_voltage/route_drawers/default.rb
high_voltage-2.3.0 lib/high_voltage/route_drawers/default.rb
high_voltage-2.2.1 lib/high_voltage/route_drawers/default.rb
high_voltage-2.2.0 lib/high_voltage/route_drawers/default.rb
high_voltage-2.1.0 lib/high_voltage/route_drawers/default.rb
high_voltage-2.0.0 lib/high_voltage/route_drawers/default.rb
high_voltage-1.2.4 lib/high_voltage/route_drawers/default.rb
high_voltage-1.2.3 lib/high_voltage/route_drawers/default.rb
high_voltage-1.2.2 lib/high_voltage/route_drawers/default.rb
high_voltage-1.2.1 lib/high_voltage/route_drawers/default.rb