From 1fd2d7897d75ae0d6375f4c390df87b8e91ad417 Mon Sep 17 00:00:00 2001 From: Will Holtkamp Date: Sat, 2 Feb 2013 10:16:11 -0600 Subject: [PATCH] Made Routes Rails 4 Friendly --- lib/themes_for_rails/routes.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/themes_for_rails/routes.rb b/lib/themes_for_rails/routes.rb index d52301b..6e4713e 100644 --- a/lib/themes_for_rails/routes.rb +++ b/lib/themes_for_rails/routes.rb @@ -7,11 +7,11 @@ def themes_for_rails constraints = { :theme => /[\w\.]*/ } match "#{theme_dir}/:theme/stylesheets/*asset" => 'themes_for_rails/assets#stylesheets', - :as => :base_theme_stylesheet, :constraints => constraints + :as => :base_theme_stylesheet, :constraints => constraints, :via => :get match "#{theme_dir}/:theme/javascripts/*asset" => 'themes_for_rails/assets#javascripts', - :as => :base_theme_javascript, :constraints => constraints + :as => :base_theme_javascript, :constraints => constraints, :via => :get match "#{theme_dir}/:theme/images/*asset" => 'themes_for_rails/assets#images', - :as => :base_theme_image, :constraints => constraints + :as => :base_theme_image, :constraints => constraints, :via => :get end end