def has_store_url?(user)
    user and \
    user.respond_to?(:orders) and \
...

Ruby Existence of ActiveRecord a...

by chipcastle.myopenid.com, June 16, 2011 15:18, 4 refactorings, tagged with Rails, ActiveRecord

User has_many :orders, Orde...

31e2b397e15442a2d3ba42db7bd4584e Talk