lib/collapsed_routes.rb in fizx-collapsed_routes-1.2.0 vs lib/collapsed_routes.rb in fizx-collapsed_routes-1.3.0
- old
+ new
@@ -33,10 +33,10 @@
logger.info "Defining route: #{base}_#{path}(#{base} = @#{base})"
logger.info "Defining route: edit_#{base}_#{path}(#{base} = @#{base})"
logger.info "Defining route: new_#{base}_#{path}(#{parent} = @#{parent})"
logger.info "Defining route: #{base.pluralize}_#{path}(#{parent} = @#{parent})"
- ActionController::UrlWriter.module_eval <<-RUBY
+ CollapsedRoutes.module_eval <<-RUBY
def #{base}_#{path}(#{base} = @#{base})
#{series}_#{path}(#{backtrack_base})
end
def edit_#{base}_#{path}(#{base} = @#{base})
\ No newline at end of file