1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/railties/lib
Brian Morearty 263764d13a Removed sorting of attribute names in controller generator.
I believe when people use generators, they typically order the
parameters on the command line in an order that makes sense
to them.  Sorting them in the generated code  makes the order
seem more arbitrary to humans, even though it's less arbitrary
to computers. :-)

Example:

    rails g scaffold Post title:string content:text

The human chose to put title before content. Sorted
attributes in the generated code work but don't match the
human's intent:

    params.require(:posts).permit(:content, :title)
2012-09-23 08:19:02 -07:00
..
rails Removed sorting of attribute names in controller generator. 2012-09-23 08:19:02 -07:00
rails.rb Move queue classes to ActiveSupport 2012-09-14 14:10:00 -07:00