Sha256: ac102032d5d8a0971c92b4cd27c2c18adc68e749132a2ac360b9cdc75b5f9dba

Contents?: true

Size: 563 Bytes

Versions: 2

Compression:

Stored size: 563 Bytes

Contents

module ThemesForRails
  module Routes
    def themes_for_rails
      match 'themes/:theme/stylesheets/:asset(.:extension)' => 'themes_for_rails/assets#stylesheets', :as => :base_theme_stylesheet
      match 'themes/:theme/javascripts/:asset(.:extension)' => 'themes_for_rails/assets#javascripts', :as => :base_theme_javascript
      match 'themes/:theme/images/:asset(.:extension)' => 'themes_for_rails/assets#images', :as => :base_theme_image
    end
  end
end
module ActionDispatch::Routing
  class Mapper #:nodoc:
    include ThemesForRails::Routes
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
themes_for_rails-0.2.2 lib/themes_for_rails/routes.rb
themes_for_rails-0.2.1 lib/themes_for_rails/routes.rb