# Method\_missing change in activerecord 2.2?

**URL:** <https://www.ruby-forum.com/t/method-missing-change-in-activerecord-2-2/154278>\
**Category:** Rails\
**Created:** [November 27, 2008, 8:26am UTC](https://www.ruby-forum.com/t/method-missing-change-in-activerecord-2-2/154278 "2008-11-27T08:26:57Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![nofxx](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/c0e974/32.png) [@nofxx](https://www.ruby-forum.com/u/nofxx)\
**Post date:** [November 27, 2008, 8:26am UTC](https://www.ruby-forum.com/t/method-missing-change-in-activerecord-2-2/154278/1 "2008-11-27T08:26:57Z")

</div>

Ouch man, after going all my app to 2.2 , only fun…  
The last darn thing I forgot to test, an old legacy table I need to  
connect sometimes… broke…

To resume it, which change in ar could have broken this?

[http://snippets.dzone.com/posts/show/2034](http://snippets.dzone.com/posts/show/2034)

I can`t get my methods to fallback to the upcased ones anymore…

# DB Column =\> UP\_FIELD

find\_by\_up\_field , works in 2.1  
undefined method `find\_by\_up\_field’ for #Class:0xb62a4340, on 2.2

@model.up\_field, same thing.  
This works:  
@model[‘UP\_FIELD’]

---

<div class="post-metadata">

**Author:** ![nofxx](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/c0e974/32.png) [@nofxx](https://www.ruby-forum.com/u/nofxx)\
**Post date:** [November 27, 2008, 8:45am UTC](https://www.ruby-forum.com/t/method-missing-change-in-activerecord-2-2/154278/2 "2008-11-27T08:45:06Z")

</div>

On Nov 27, 1:34 am, nofxx [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> Ouch man, after going all my app to 2.2 , only fun…  
> The last darn thing I forgot to test, an old legacy table I need to  
> connect sometimes… broke…
> 
> To resume it, which change in ar could have broken this?

It’s overriding extract\_attribute\_names\_from\_match which doesn’t exist  
any more (see this commit:

> <https://github.com/rails/rails/commit/143f5fbb21b6dfcaab63d67b44afd922dab9dcf5>
>
> Signed-off-by: Jeremy Kemper \<jeremy@bitsweat.net\>

)

Fred

---

<div class="post-metadata">

**Author:** ![nofxx](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/c0e974/32.png) [@nofxx](https://www.ruby-forum.com/u/nofxx)\
**Post date:** [November 27, 2008, 9:04am UTC](https://www.ruby-forum.com/t/method-missing-change-in-activerecord-2-2/154278/3 "2008-11-27T09:04:26Z")

</div>

Morning Frederick,

I changed to " find (:first, :conditions…" then it works.  
It`s just 3 calls, will try fixing the class later.  
Thank you.

On Nov 27, 5:43 am, Frederick C. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)
