Sha256: 625d977289ed532b36a129ac3f2fe3d87f507d771cd430be4f92f4e0ee5dd4df
Contents?: true
Size: 674 Bytes
Versions: 7
Compression:
Stored size: 674 Bytes
Contents
class Dummy < Amfetamine::Base amfetamine_attributes :title, :description validates_presence_of :title, :description has_many_resources :children has_many_resources :students, foreign_key: 'parent_id' before_create :action_before_create after_create :action_after_create before_save :action_before_save after_save :action_after_save before_validation :action_before_validate def action_before_create Amfetamine.logger.warn "Yo, BEFORE CREATE called" end def action_after_create Amfetamine.logger.warn "Yo, AFTER CREATE called" end def action_before_save end def action_after_save end def action_before_validate end end
Version data entries
7 entries across 7 versions & 1 rubygems