Can i limit a has_many photos per user?


#1

is there a rails way?

or should i just a do a before_save :check_limit, and just tally up the
amount of photos before saving? so maybe do something like

if user.photos.count == 4, max limit set. etc…

thanks