diff options
Diffstat (limited to 'lib/mauve/alert.rb')
-rw-r--r-- | lib/mauve/alert.rb | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/lib/mauve/alert.rb b/lib/mauve/alert.rb index 07aeb55..80e1485 100644 --- a/lib/mauve/alert.rb +++ b/lib/mauve/alert.rb @@ -85,9 +85,11 @@ module Mauve validates_with_method :check_dates - def to_s - "#<Alert:#{id} #{alert_id} from #{source} update_type #{update_type}>" + def inspect + "#<Alert #{id}, alert_id #{alert_id}, source #{source}>" end + + alias to_s inspect def check_dates bad_dates = self.attributes.find_all do |key, value| @@ -210,6 +212,8 @@ module Mauve end end + logger.info "#{self.inspect} updated." unless @attributes_before_save.empty? + true end |