Ruby on Rails | Screencasts | Download | Documentation | Weblog | Community | Source

Ticket #686 (closed defect: fixed)

Opened 4 years ago

Last modified 4 years ago

[PATCH] rails_generator doesn't work without gems

Reported by: Cristi BALAN <mental@gmail.com> Assigned to: jeremy@bitsweat.net
Priority: normal Milestone: 1.0
Component: Railties Version: 0.9.5
Severity: blocker Keywords:
Cc:

Description

Using source:/trunk#716, without any gems installed, running ruby rails/railties/bin/rails FOO breaks because it can't find the active_support gem.

The problem seems to be in railtes/lib/rails_generator.rb where the loadpath does not contain the active_support/lib directory.

Also, after loading activesupport, the generators make use of things defined in files that are not loaded by default in activesupport (class_inheritable_attributes and class_attribute_accessors)

A patch is attached to fix this but i'm not putting [PATCH] in the ticket since i don't really know what i might break here :)

Attachments

rails_generator.diff (0.5 kB) - added by evilchelu on 02/20/05 21:50:51.

Change History

02/20/05 21:50:51 changed by evilchelu

  • attachment rails_generator.diff added.

03/06/05 02:27:23 changed by nzkoz

  • summary changed from rails_generator doesn't work without gems to [PATCH] rails_generator doesn't work without gems.
  • milestone set to 1.0.

I'm putting patch in so david can look at it ;)

03/06/05 12:20:26 changed by david

  • status changed from new to closed.
  • resolution set to fixed.