Sha256: 1160ffe970e1868c5a5ef86b07bb329991a0e51b2b15131f33d7fbb761b59d2b
Contents?: true
Size: 373 Bytes
Versions: 3
Compression:
Stored size: 373 Bytes
Contents
class <%= class_name %>Observer < ActiveRecord::Observer def after_create(<%= file_name %>) <%= class_name %>Mailer.signup_notification(<%= file_name %>).deliver end def after_save(<%= file_name %>) <% if options[:include_activation] %><%= class_name %>Mailer.activation(<%= file_name %>).deliver if <%= file_name %>.recently_activated?<% end %> end end
Version data entries
3 entries across 3 versions & 3 rubygems