Forum OpenACS Development: Re: OpenACS, XoTcl, and ActiveRecord

Collapse
Posted by Guan Yang on

One point about ActiveRecord is that you have business logic in the same class. Using the Ruby example, you might have:

class Person << ActiveRecord::Base
    def send_email(subject, message)
        send_email_proc(@email, subject, message)
    end

    def revoke_credit
        @credit = 0
    end
end