NewForge (7) [Avatar] Offline
#1
Rather than enlarging the application.rb with this shared code to force :dasherize to false, one might consider a more idiomatic approach:
- place these modules in a new file 'lib/force_dasherize_false.rb'
- in environment.rb, add a line: require 'force_dasherize_false.rb'
peterarmstrong (94) [Avatar] Offline
#2
Re: Force dehasherize false to lib (p.126)
That makes sense. I think it's too late to do in Flexible Rails though, but I should mention that something like this would be better...