This project is archived and is in readonly mode.

Changeset [bca070ef2ddbbe7e093c340ec7722e4dca0f37a5] by Caleb Land

February 3rd, 2011 @ 09:05 PM

allow spaces and other characters in attribute names [#4725 state:resolved]

  • define the dynamically defined methods with 'define_method' instead of def
  • wrap some string injected method names in quotes

Signed-off-by: Santiago Pastorino santiago@wyeworks.com
https://github.com/rails/rails/commit/bca070ef2ddbbe7e093c340ec7722...

Committed by Caleb Land

  • M activemodel/lib/active_model/attribute_methods.rb
  • M activemodel/test/cases/attribute_methods_test.rb

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

<h2 style="font-size: 14px">Tickets have moved to Github</h2>

The new ticket tracker is available at <a href="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>