Sha256: 3d09ccbb44f05cd86de36a6b8f7ec6d67a981296920e670bd4cc23ef6223c491
Contents?: true
Size: 630 Bytes
Versions: 3
Compression:
Stored size: 630 Bytes
Contents
module ThemeSupport module RoutingExtensions def themeing @set.with_options :controller => 'themesupport' do |theme| match '/themes/:theme/images/*filename', :to => 'themesupport#images', :as => 'theme_images' match '/themes/:theme/stylesheets/*filename', :to => 'themesupport#stylesheets', :as => 'theme_stylesheets' match '/themes/:theme/javascripts/*filename', :to => 'themesupport#javascript', :as => 'theme_javascript' match '/themes/*whatever', :to => 'themesupport#error' end end end end ActionDispatch::Routing::Mapper.send :include, ThemeSupport::RoutingExtensions
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
theme_support-3.0.7 | lib/theme_support/patches/routeset_ex.rb |
theme_support-3.0.6 | lib/theme_support/patches/routeset_ex.rb |
theme_support-3.0.5 | lib/theme_support/patches/routeset_ex.rb |