Sha256: 099fb2150df7f984407970fb30ea082a70f7ed47ba02766980485875a54fc3f4

Contents?: true

Size: 311 Bytes

Versions: 5

Compression:

Stored size: 311 Bytes

Contents

if RefinerySetting.find_or_set(:rewrite_refinery_paths, true)
  ::Refinery::Application.routes.draw do
    match '/refinery(/*path)', :to => redirect {|params, request|
      "/#{RefinerySetting.find_or_set(:rewrite_refinery_paths_to, "admin")}#{"/#{params[:path]}" unless params[:path].blank?}"
    }
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
moxify-0.1.9.1 config/routes.rb
moxify-0.1.9 config/routes.rb
moxify-0.1.8 config/routes.rb
moxify-0.1.7.4 config/routes.rb
moxify-0.1.7.3 config/routes.rb