Sha256: be8dbf5c7ab1e827b9bf2cbf231a41d0b2d20125cba6623f7f8f782b739a51f6

Contents?: true

Size: 769 Bytes

Versions: 5

Compression:

Stored size: 769 Bytes

Contents

if ENV["MUNGE_ENV"] == "production"
  system.router.register(
    Routers::Fingerprint.new(
      extensions: config[:router_fingerprint_extensions],
      separator: config[:router_fingeprint_separator]
    )
  )
end

system.router.register(
  Routers::RemoveBasename.new(
    extensions: config[:router_remove_basename_original_extensions],
    basenames: config[:router_remove_basename_route_basenames],
    keep_explicit: config[:router_remove_basename_keep_explicit]
  )
)

system.router.register(
  Routers::AddDirectoryIndex.new(
    extensions: config[:router_add_index_original_extensions],
    index: config[:router_add_index_basename]
  )
)

system.router.register(
  Routers::AutoAddExtension.new(
    keep_extensions: config[:router_keep_extensions]
  )
)

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
munge-0.18.0 seeds/lib/routing.rb
munge-0.17.0 seeds/lib/routing.rb
munge-0.16.0 seeds/lib/routing.rb
munge-0.15.1 seeds/lib/routing.rb
munge-0.15.0 seeds/lib/routing.rb