make default widget works without init

This commit is contained in:
Fu Matthew committed 2013-01-03 19:38:14 +08:00
1 parent 1856d2395d
commit a70110f787
7 files changed
+115 -1

No files matched your search

+2 -1
View File
@@ -241,7 +241,8 @@ Orbit::Application.routes.draw do
match 'show_sitemap' => 'front#show_sitemap', :as => :front_show_sitemap
end
match '/panel/orbit_app/widget/:type' => 'default_widget#default_widget'
match '/panel/:app_name/front_end/:app_action/:id(/:controller_action)' => 'pages#show_from_link', :constraints => lambda { |request|
!request.query_string.include?("inner=true")
}