Sha256: d5106510a97486148baeea31057549392cbbcfaa52cab23e278e5bb14a6307be
Contents?: true
Size: 500 Bytes
Versions: 11
Compression:
Stored size: 500 Bytes
Contents
class Entry < ActiveRecord::Base attr_accessor :validation_should_fail def validate errors.add("image","some stupid error") if @validation_should_fail end def after_assign @after_assign_called = true end def after_assign_called? @after_assign_called end def after_save @after_save_called = true end def after_save_called? @after_save_called end def my_store_dir # not really dynamic but at least it could be... "my_store_dir" end end
Version data entries
11 entries across 11 versions & 1 rubygems