app/assets/javascripts/eastwood.js.coffee.erb in eastwood-0.0.1 vs app/assets/javascripts/eastwood.js.coffee.erb in eastwood-0.1.2

- old
+ new

@@ -1,9 +1,9 @@ ###* * <%= application_name %> Client Settings * - * Generated automatically by Eastwood and the Rails 3.1 Asset Pipeline + * Generated automatically by Eastwood and the Rails <%= Rails::version %> Asset Pipeline on <%= DateTime.now %> ### app = { env : '<%= env %>', routes : root_path : -> "/" } <% if named_routes.any? %> ###* @@ -19,10 +19,10 @@ # segment_keys: <%= r.segment_keys %> <% unless r.segment_keys.empty? %> # root_path is already taken care of app.routes.<%= r.name %>_path = ( <%= r.segment_keys.join ', ' %>='json' ) -> - "<%= r.path.delete( '()' ).gsub /:(\w+)/, '#{\1}' %>" + "<%= r.path.spec.to_s.delete( '()' ).gsub /:(\w+)/, '#{\1}' %>" <% end %> <% end %> <% end %>