Sha256: c062936670f786631c06470e21f5c6c9a17cc831a38308b81d41b4d036803750
Contents?: true
Size: 446 Bytes
Versions: 1
Compression:
Stored size: 446 Bytes
Contents
class TestClass < ActiveRecord::Base acts_as_monitor attr_accessor :warn, :error after_initialize do @warn ||= false @error ||= false end private def warn_test? @warn end def error_test? @error end def warn_paperino? return true if self.name == 'Paperino' end def error_pippo? return true if self.name == 'Pippo' end def error_id? return true if self.id == 1 end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
acts_as_monitor-0.0.9 | test/dummy/app/models/test_class.rb |