Re: [Rails-core] Change where module file goes for namespaced AR models

2017-10-20 Thread Matt Wire
You are right about the autoloader. I have been putting those files in `app/modules` and wasn't thinking about the autoloader when I changed my suggestion to suggest using the subdirectory inside `app/models`. I made that change before posting this new topic because I felt that suggesting a whol

Re: [Rails-core] Change where module file goes for namespaced AR models

2017-10-19 Thread Matt Jones
> On Oct 18, 2017, at 3:56 PM, Matt Wire wrote: > > Hello all! > > Because Rails apps get cluttered up rather quickly, I am proposing a change > to this Rails generator method: > > https://github.com/rails/rails/blob/master/activerecord/lib/rails/generators/active_record/model/model_generator

[Rails-core] Change where module file goes for namespaced AR models

2017-10-18 Thread Matt Wire
Hello all! Because Rails apps get cluttered up rather quickly, I am proposing a change to this Rails generator method: https://github.com/rails/rails/blob/master/activerecord/lib/rails/generators/active_record/model/model_generator.rb (starting at LOC 29) def create_module_file return if re