Sha256: 08b384a7a3aa8cf434c00d57ab1a8da937cc6774d7ac24b69ec5b1d63e0ba7a8

Contents?: true

Size: 300 Bytes

Versions: 8

Compression:

Stored size: 300 Bytes

Contents

ActionController::Routing::Routes.draw do |map|
  [:javascripts, :stylesheets].each do |type|
    map.send(type, "#{type}/:path.:format", {
      :controller => "engine_assets/#{type}",
      :action     => :show,
      :path       => /[A-Za-z0-9\/._-]+?/   # e.g., path/to/file.ext
    })
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
engine-assets-0.4.2 config/routes.rb
engine-assets-0.4.1 config/routes.rb
engine-assets-0.4.0 config/routes.rb
engine-assets-0.3.3 config/routes.rb
engine-assets-0.3.2 config/routes.rb
engine-assets-0.3.1 config/routes.rb
engine-assets-0.3.0 config/routes.rb
engine-assets-0.2.1 config/routes.rb