I’ve created a pull request to make this happen.

https://github.com/rails/rails/pull/13131

model.name_changed?("Ringo")
model.name_changed?("John" => "Ringo")

On 02-Dec-2013, at 9:04 am, Tejas Dinkar <[email protected]> wrote:
> On 28-Nov-2013, at 7:26 am, Nicholas Firth-McCoy <[email protected]> wrote:
>> p.changed?(name: 'Nicholas') => true
> 
> 
> If this is happening, it might be nice to test on both the old and the new 
> value
> 
> p.changed?(name: {“Nick” => “Nicholas”})
> --
> Tejas Dinkar
> http://www.nilenso.com
> Nilenso Software (formerly C42 Engineering)



--
Tejas Dinkar
http://www.nilenso.com
Nilenso Software (formerly C42 Engineering)

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Core" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/rubyonrails-core.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to