Sha256: 37b40a1bbd75547ca4ed2b1436e9683defa6609fe312d16976c37beab574dcd6

Contents?: true

Size: 377 Bytes

Versions: 82

Compression:

Stored size: 377 Bytes

Contents

class <%= class_name %>Observer < ActiveRecord::Observer
  def after_create(<%= file_name %>)
    <%= class_name %>Mailer.deliver_signup_notification(<%= file_name %>)
  end

  def after_save(<%= file_name %>)
  <% if options[:include_activation] %>
    <%= class_name %>Mailer.deliver_activation(<%= file_name %>) if <%= file_name %>.recently_activated?
  <% end %>
  end
end

Version data entries

82 entries across 75 versions & 12 rubygems

Version Path
dwaite-restful-authentication-1.1.1 generators/authenticated/templates/observer.rb
genki-restful-authentication-1.1.1 generators/authenticated/templates/observer.rb
ggoodale-restful-authentication-1.1.1 generators/authenticated/templates/observer.rb
jcnetdev-restful-authentication-1.0.20080704 generators/authenticated/templates/observer.rb
simonmenke-mr_authentication-0.0.1 vendor/plugins/restful-authentication/generators/authenticated/templates/observer.rb
smukherjee-openbill-0.1.5 vendor/plugins/restful-authentication/generators/authenticated/templates/observer.rb
smukherjee-openbill-0.1.6 vendor/plugins/restful-authentication/generators/authenticated/templates/observer.rb
smukherjee-openbill-0.1.7 vendor/plugins/restful-authentication/generators/authenticated/templates/observer.rb
tournament-5.0.0 webgui/vendor/plugins/restful_authentication/generators/authenticated/templates/observer.rb
branston-0.6.6 lib/branston/vendor/plugins/restful_authentication/generators/authenticated/templates/observer.rb
branston-0.6.5 lib/branston/vendor/plugins/restful_authentication/generators/authenticated/templates/observer.rb
branston-0.6.4 lib/branston/vendor/plugins/restful_authentication/generators/authenticated/templates/observer.rb
branston-0.6.3 lib/branston/vendor/plugins/restful_authentication/generators/authenticated/templates/observer.rb
branston-0.6.2 lib/branston/vendor/plugins/restful_authentication/generators/authenticated/templates/observer.rb
tournament-4.2.0 webgui/vendor/plugins/restful_authentication/generators/authenticated/templates/observer.rb
tournament-4.0.2 webgui/vendor/plugins/restful_authentication/generators/authenticated/templates/observer.rb
tournament-4.0.0 webgui/vendor/plugins/restful_authentication/generators/authenticated/templates/observer.rb
somatics3-generators-0.0.9 lib/generators/somatics/authenticated/templates/observer.rb
somatics3-generators-0.0.9 lib/generators/somatics/authenticated_controller/templates/observer.rb
somatics3-generators-0.0.8 lib/generators/somatics/authenticated/templates/observer.rb