Godfrey Chan
2013-May-03 11:38 UTC
Moving plural detection and --force-plural option to models generator
Hi all, I talked to Aaron briefly about this at RailsConf, but I just wanted to bring this up here before I start working on it in case anyone objects. I will be looking into moving the "Plural version of the model detected, using singularized version. Override with --force-plural." warning and the associated flag into the model generators. Currently this is only in the resource (and hence scaffold) generator, so if you do "rails g resource things" Rails will fix it for you (and warn you about it), but if you do "rails g model things" it will happily do it for you, which seems kind of bizarre. If anyone objects or knows the historical reasons why it''s setup this way, otherwise I hope to start working on this soon and see if I can get it in asap. On a more serious note, I''m also planning to submit another pull request to rename the default application.js to sprinkles.js as well as properly documenting the 1 MB limit. Is that cool with everyone? ;) Godfrey / @chancancode PS nice meeting everyone at RailsConf! -- 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 rubyonrails-core+unsubscribe@googlegroups.com. To post to this group, send email to rubyonrails-core@googlegroups.com. Visit this group at http://groups.google.com/group/rubyonrails-core?hl=en. For more options, visit https://groups.google.com/groups/opt_out.