1 class Entry < ActiveRecord::Base
2 attr_accessor :validation_should_fail
5 errors.add("image","some stupid error") if @validation_should_fail
9 @after_assign_called = true
12 def after_assign_called?
17 @after_save_called = true
20 def after_save_called?
25 # not really dynamic but at least it could be...
29 def load_image_with_rmagick(path)
30 Magick::Image::read(path).first