diff --git a/lib/themes_for_rails/routes.rb b/lib/themes_for_rails/routes.rb index d52301b..3db555f 100644 --- a/lib/themes_for_rails/routes.rb +++ b/lib/themes_for_rails/routes.rb @@ -6,11 +6,11 @@ def themes_for_rails theme_dir = ThemesForRails.config.themes_routes_dir constraints = { :theme => /[\w\.]*/ } - match "#{theme_dir}/:theme/stylesheets/*asset" => 'themes_for_rails/assets#stylesheets', + get "#{theme_dir}/:theme/stylesheets/*asset" => 'themes_for_rails/assets#stylesheets', :as => :base_theme_stylesheet, :constraints => constraints - match "#{theme_dir}/:theme/javascripts/*asset" => 'themes_for_rails/assets#javascripts', + get "#{theme_dir}/:theme/javascripts/*asset" => 'themes_for_rails/assets#javascripts', :as => :base_theme_javascript, :constraints => constraints - match "#{theme_dir}/:theme/images/*asset" => 'themes_for_rails/assets#images', + get "#{theme_dir}/:theme/images/*asset" => 'themes_for_rails/assets#images', :as => :base_theme_image, :constraints => constraints end diff --git a/themes_for_rails.gemspec b/themes_for_rails.gemspec index d1d21c0..1649f86 100644 --- a/themes_for_rails.gemspec +++ b/themes_for_rails.gemspec @@ -21,5 +21,4 @@ Gem::Specification.new do |gem| gem.add_development_dependency "test-unit" gem.add_development_dependency "contest" gem.add_development_dependency "mocha" - gem.add_development_dependency('rails', ["= 3.0.11"]) end