Kernel.Table method collides with global Table-method of Arel in Rails3 #3

Open
akafred opened this Issue Nov 11, 2010 · 2 comments

Comments

Projects
None yet
3 participants

akafred commented Nov 11, 2010

Kernel.Table method collides with global Table-method of Arel in Rails3. The global Table-method can in client code be replaced by Ruport::Data::Table.new (which has a different interface) - but methods like Pivot.to_table uses the Kernel.Table method and is broken (because Arels Table method interferes).

Collaborator

Odaeus commented Nov 11, 2010

Thank you for reporting and investigating this issue. I think the correct solution is as you suggest to replace all instances with the namespaced version. It's not very good to pollute the global namespace like that but I don't want to break backward compatibility. So I will see if I can detect if Table already exists, but that depends when the gem gets loaded.

nikosd commented Apr 14, 2011

Hi, is this still valid? Mainly the question is, is Ruport compatible with Rails 3 or not?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment