Skip to content

Commit

Permalink
Append *path route to Rails.application and not Refinery::Core::Engin…
Browse files Browse the repository at this point in the history
…e so that it's a true fallback when Refinery is mounted before other routes.
  • Loading branch information
parndt committed Feb 13, 2012
1 parent 2bcac05 commit 017a52f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pages/lib/refinery/pages/engine.rb
Expand Up @@ -50,8 +50,8 @@ class Engine < ::Rails::Engine
protected

def append_marketable_routes
Refinery::Core::Engine.routes.append do
get '*path', :to => 'pages#show'
Rails.application.routes.append do
get '*path', :to => 'refinery/pages#show'
end
end

Expand Down

0 comments on commit 017a52f

Please sign in to comment.