class Smokers < ActiveRecord:: Base
belongs_to :heart_failure_statistics
has_many :cigarettes
attr_accessor :mins_since_last_puff
before_validation :check_cigarettes
def smoke?
if mins_since_last_puff >= 60
write_warren("Smoke?")
end
end
end

Comments
my errant code
tesing. warren says this is broke :(
new fangled languages
in good old lisp it would have simply been:
(smokeP)
Post new comment