[rspec-users] OT: SIT - how to turn it off

David Chelimsky dchelimsky at gmail.com
Sat Mar 21 09:27:49 EDT 2009


On Fri, Mar 20, 2009 at 3:32 PM, James Byrne <lists at ruby-forum.com> wrote:
> Pardon the intrusion but if somebody knows how to turn off Rails special
> treatment of attributes ending in _type and _value I would dearly like
> to have this information.
>
> Workarounds are accepted too.
>
> I am trying to initialise an associated row that contains the columns
> identifier_type and identifier_value.  The statement
>
>  model.association.create!(:column_type => 'X', :column_value => 'Y')

What type of association? There are many and they are all handled
quite differently.

>
> leaves association.column_type and association.column_value attributes
> with VALUES  NULL in the resulting generated SQL code.  I really need
> Rails to accept the values that I provide.


> --
> Posted via http://www.ruby-forum.com/.
> _______________________________________________
> rspec-users mailing list
> rspec-users at rubyforge.org
> http://rubyforge.org/mailman/listinfo/rspec-users
>


More information about the rspec-users mailing list