Sha256: 87cfd44e0ff029c5c939746866f74ff105f126b50116836b6ec47499642d7311

Contents?: true

Size: 393 Bytes

Versions: 1

Compression:

Stored size: 393 Bytes

Contents

<%= depend_on Rails.root.join('config', 'routes.rb') %>
<%= require_asset 'jquery.pathBuilder' %>

window.Routes = {};
<% Rails.application.routes.routes.reject {|r| r.defaults['hidden'] || r.name.blank?}.each do |route| %>
Routes.<%= route.name %>_path = function () {
  Array.prototype.unshift.call(arguments, '<%= route.path.spec %>');
  return $.buildPath.apply($, arguments);
};
<% end %>

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
js_routes-0.1.18 lib/assets/javascripts/routes.js.erb