pjdavis / roart

Interface for working with Request Tracker (RT) tickets inspired by ActiveRecord.
28 stars 15 forks source link

Conflicts when used inside Rails app, by overwriting methods from ActiveSupport #1

Closed axtro closed 14 years ago

axtro commented 14 years ago

The Hash and String extensions used by roart overwrite the same extensions from ActiveSupport when used inside a Rails app. Roart for example defines 'camelize' on String without parameters, but ActiveSupport does use a parameter and Rails depends on the parameter for example in rjs views.

In http://github.com/hennk/roart/commit/054ccae71fb911a0cd749b1534f4ab5c48351b7c I fixed this by checking for existence of ActiveSupport before extending these system classes, allowing roart to be used from inside a Rails app.

axtro commented 14 years ago

The method Array#to_hash added by roart to Hash also conflicts with ActiveSupport's deep_merge, converting all arrays contained in the Hash to hashes

pjdavis commented 14 years ago

This is hopefully fixed in version 0.1.9 with the commit you referenced. Let me know if you run into any problems with it.