Sha256: b6b338fb191266c7e3e97d65cf6132104986acb086a323c85e206a3718ad45dc

Contents?: true

Size: 298 Bytes

Versions: 1

Compression:

Stored size: 298 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

1 entries across 1 versions & 1 rubygems

Version Path
engine-assets-0.2.0 config/routes.rb