Sha256: 61fed621881940d8b58be5f35c694f310edfc7468947b39526f3fa7c96d5da7f

Contents?: true

Size: 811 Bytes

Versions: 82

Compression:

Stored size: 811 Bytes

Contents

class <%= class_name %>Mailer < ActionMailer::Base
  def signup_notification(<%= file_name %>)
    setup_email(<%= file_name %>)
    @subject    += 'Please activate your new account'
  <% if options[:include_activation] %>
    @body[:url]  = "http://YOURSITE/activate/#{<%= file_name %>.activation_code}"
  <% else %>
    @body[:url]  = "http://YOURSITE/login/" <% end %>
  end
  
  def activation(<%= file_name %>)
    setup_email(<%= file_name %>)
    @subject    += 'Your account has been activated!'
    @body[:url]  = "http://YOURSITE/"
  end
  
  protected
    def setup_email(<%= file_name %>)
      @recipients  = "#{<%= file_name %>.email}"
      @from        = "ADMINEMAIL"
      @subject     = "[YOURSITE] "
      @sent_on     = Time.now
      @body[:<%= file_name %>] = <%= file_name %>
    end
end

Version data entries

82 entries across 75 versions & 12 rubygems

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