Forum: Ruby on Rails ActiveRecord with 'quote' attribute

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
jackc (Guest)
on 2005-11-18 19:32
(Received via mailing list)
I have an table with a column named quote. When I run my functional
tests I run into a problem with attributes_with_quotes.

On line 1628 (Rails 14.3) quoted[name] = quote(value, column) unless
!include_primary_key && column.primary

quote has been overridden to the model attribute instead of the base
quote method. This causes an error.

This only happens in functional tests, not unit tests, and if I run the
specific action it happens on alone, it works fine and calls the base
quote method. If I test all the actions in the controller it fails by
calling the quote attribute.

Any ideas?


Jack C.
This topic is locked and can not be replied to.