GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
This add an option to model generator to generate classes that use ActiveRecord::Model. Ex:
rails g model Post --with-include
Please don't merge this inmediatly, I think we can choose a better option name than --with-include for this
Add an option to model generator to generate classes with ActiveRecor…
…d::Model include instead of inherit from ActiveRecord::Base
Thanks for the patch.
However, I'm not sure about this:
But, I am biased because I never use generators (except for migrations).
cc @josevalim @tenderlove
Merry christmas! ho ho ho etc :)
TBH, I'd like to see this bake in master for a while before we start adding generators. Right now, I think this is an "advanced users" feature, and I don't think advanced users need / user generators. But that's my 2cents.
Agree, we can leave this open and revisit it on the next months
I 👍 this. Any thoughts on this @tenderlove / @wycats?
I still think the points given by @jonleighton and @tenderlove still apply. We will only be able to decide this after 4.0 is out.
Hey guys, do we keep this around opened for more time, or should we consider it closed?
Lets just close it.