I have numerous models in my app/models folder. I'd like to clean this folder up a little bit. Move models that belong to each other in subfolders. The problem is that by convention the model class is namespaced into an according module.
E.g.
app/models/blog/post.rb
app/models/blog/comment.rb
app/models/user.rb
so that:
app/models/blog/post.rb
class Post < ActiveRecord
end
and not
class Blog::Post < ActiveRecord
end
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…