Update RDoc to mention integer coercion in ActiveRecord’s find by id #5830

Merged
merged 2 commits into from Apr 13, 2012

Conversation

Projects
None yet
2 participants
Contributor

raganwald commented Apr 13, 2012

attn: @fxn.

Owner

fxn commented Apr 13, 2012

Awesome!

Just a couple of details: First the coercion is done only if the type of the primary key is integer. Second, if you don't mind, since we need to revise that previous one, instead of #to_i you would write to_i without hash and in fixed-width font (between plus signs).

Contributor

raganwald commented Apr 13, 2012

Done, thanks!

Owner

fxn commented Apr 13, 2012

Fantastic, thanks very much :).

fxn merged commit 4e3e513 into rails:master Apr 13, 2012

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment