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

Ticket #11382 (new defect)

Opened 4 months ago

[PATCH] query_attribute does not work with symbols

Reported by: norbert Assigned to: core
Priority: normal Milestone: 2.x
Component: ActiveRecord Version: edge
Severity: normal Keywords: tiny
Cc:

Description

The query_attribute method does not call to_s on the attribute name, unlike read_ and write_attribute. This causes weird behaviour when calling it with a symbol.

Attachments

fix_query_attribute_with_symbols.diff (1.8 kB) - added by norbert on 03/19/08 15:09:39.

Change History

03/19/08 15:09:39 changed by norbert

  • attachment fix_query_attribute_with_symbols.diff added.