aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/test/inflector_test_cases.rb
diff options
context:
space:
mode:
authorBrian Morearty <brian@morearty.org>2012-09-23 08:19:02 -0700
committerBrian Morearty <brian@morearty.org>2012-09-23 08:19:02 -0700
commit263764d13a9cd4eae60d1fa9e50af57f506f3dd4 (patch)
treeebbd6b6aac279c7d474dc18feb8fa6ce9898ae12 /activesupport/test/inflector_test_cases.rb
parentd9b873c4289c1e0dc1bf1d644fa827b600fb0893 (diff)
downloadrails-263764d13a9cd4eae60d1fa9e50af57f506f3dd4.tar.gz
rails-263764d13a9cd4eae60d1fa9e50af57f506f3dd4.tar.bz2
rails-263764d13a9cd4eae60d1fa9e50af57f506f3dd4.zip
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)
Diffstat (limited to 'activesupport/test/inflector_test_cases.rb')
0 files changed, 0 insertions, 0 deletions