Bugs: Browse | Submit New | Admin

[#19432] [FIX] Blackbook: conflict with json generator.rb in Rails 2

Date:
2008-04-11 11:53
Priority:
3
Submitted By:
Henrik N (malesca)
Assigned To:
Nobody (None)
Category:
None
State:
Open
Summary:
[FIX] Blackbook: conflict with json generator.rb in Rails 2

Detailed description
It seems Blackbook, when used in Rails 2, breaks: when it requires "generator.rb", it gets the one in the
json gem (that Rails uses) since that's earlier in the libpath.

We've fixed it on our end by doing

  require File.join(Config::CONFIG['rubylibdir'], "generator.rb")

in in our environment.rb. That should get the Ruby stdlib generator.rb and none other. Would be nice to have it fixed
upstream -- this ought to work: http://pastie.textmate.org/private/yvsjsl5rwwlzk40p6n2sa

Add A Comment: Notepad

Please login


Followup

No Followups Have Been Posted

Attached Files:

Name Description Download
No Files Currently Attached

Changes:

No Changes Have Been Made to This Item