Something that has bothered me for a while is should model methods that set 
attributes call save or should the caller do it?

ie. This...

class Project < ActiveRecord::Base
  def paid
    self.state = PAID
    self.save
  end

end

or this...

my_project.paid
my_project.save


-- 
You received this message because you are subscribed to the Google Groups 
"WellRailed" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/wellrailed?hl=en.

Reply via email to