code_junkie

Best Practice for Model Design in Ruby on Rails

Nov 10th, 2011
138
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1. events
  2. event_types
  3. event_groups
  4. event_attendees
  5. etc...
  6.  
  7. app/models/admin/user.rb
  8. app/models/admin/group.rb
  9.  
  10. app/models/publishing/article.rb
  11. app/models/publishing/comment.rb
  12.  
  13. app/models/admin/base.rb - module Admin::Base, included by all other Admin::xxx
  14. app/models/admin/user.rb - class Admin::User, includes Admin::Base
  15. app/models/admin/group.rb - class Admin::Group, includes Admin::Base
Add Comment
Please, Sign In to add comment