Sha256: a3366b8038ea2c9914ffbf9417a48446a09d5b373fa956556c3794b57d8be3e2

Contents?: true

Size: 593 Bytes

Versions: 2

Compression:

Stored size: 593 Bytes

Contents

module ThemesForRails
  module Routes
    def themes_for_rails
      theme_dir = ThemesForRails.config.themes_dir
      match "#{theme_dir}/:theme/stylesheets/*asset" => 'themes_for_rails/assets#stylesheets', :as => :base_theme_stylesheet
      match "#{theme_dir}/:theme/javascripts/*asset" => 'themes_for_rails/assets#javascripts', :as => :base_theme_javascript
      match "#{theme_dir}/:theme/images/*asset" => '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.4.3 lib/themes_for_rails/routes.rb
themes_for_rails-0.4.2 lib/themes_for_rails/routes.rb