Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

updated routes for Rails 4.2 support #76

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions lib/themes_for_rails/routes.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
1 change: 0 additions & 1 deletion themes_for_rails.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -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