18 Dec '12, 7pm

Hey Women! Welcome to the Ruby on Rails community, where the creator blogs about chubby models needing to go on a diet.

Different models in your Rails application will often share a set of cross-cutting concerns. In Basecamp, we have almost forty such concerns with names like Trashable, Searchable, Visible, Movable, Taggable. These concerns encapsulate both data access and domain logic about a certain slice of responsibility. Here’s a simplified version of the taggable concern: module Taggable extend ActiveSupport::Concern included do has_many :taggings, as: :taggable, dependent: :destroy has_many :tags, through: :taggings end def tag_names tags.map(&:name) end end This concern can then be mixed into all the models that are taggable and you’ll have a single place to update the logic and reason about it. Here’s a similar concern where all we add is a single class method: # current_account.posts.visible_to(current_user) module Visible extend ActiveSupport::Concern module ClassMethods def visi...

Full article: http://37signals.com/svn/posts/3372-put-chubby-models-on-...

Tweets

Chubby Models Are Still Fat With Concerns. DCI ...

rubyflow.com 18 Dec '12, 7pm

Chubby Models Are Still Fat With Concerns. DCI Focuses On How Things Work Together Posted by jim on December 18, 2012 — 0 ...

New year diet for our cars to cut emissions: Our bloated modern cars are going to have to go on a serious diet i...

New year diet for our cars to cut emissions: Ou...

thegreencarwebsite.co.uk 17 Dec '12, 2pm

Our bloated modern cars are going to have to go on a serious diet if we really want to reduce CO2 emissions, according to ...

Request for feedback: Models, Roles, Decoration...

rubyflow.com 19 Dec '12, 11pm

Request for feedback: Models, Roles, Decorations, and Interactions Posted by seacreature on December 19, 2012 — 0 comments...

DCI, Concerns and Readable Code: I just publish...

rubyflow.com 19 Dec '12, 3pm

DCI, Concerns and Readable Code Posted by brynary on December 19, 2012 — 0 comments I just published a blog post about DCI...

Wash #DC based #models agency staffed all types...

twitter.com 17 Dec '12, 7pm

http://www. modelbuzz.tv/2012/12/09/emm e-girls-luxury-entertainment-aerialist-in-balloon-magician-dancers-models-musician...