josevalim-auth_helpers 0.1.0 → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -16,9 +16,6 @@ module AuthHelpers
|
|
16
16
|
class Notifier < ActionMailer::Base
|
17
17
|
class << self; attr_accessor :sender, :content_type end
|
18
18
|
|
19
|
-
self.content_type = 'text/html'
|
20
|
-
self.template_root = File.join(File.dirname(__FILE__), '..', '..', 'views')
|
21
|
-
|
22
19
|
def new_account(record)
|
23
20
|
@subject = I18n.t 'actionmailer.auth_helpers.new_account', :default => 'New account'
|
24
21
|
set_ivars!(:confirmable, record)
|
@@ -52,3 +49,6 @@ module AuthHelpers
|
|
52
49
|
|
53
50
|
end
|
54
51
|
end
|
52
|
+
|
53
|
+
AuthHelpers::Notifier.content_type = 'text/html'
|
54
|
+
AuthHelpers::Notifier.template_root = File.join(File.dirname(__FILE__), '..', '..', 'views')
|
@@ -0,0 +1 @@
|
|
1
|
+
Your confirmation code is <%= @confirmable.confirmation_code %>.
|
@@ -0,0 +1 @@
|
|
1
|
+
Your new confirmation code is <%= @confirmable.confirmation_code %>.
|
@@ -0,0 +1 @@
|
|
1
|
+
Welcome! Your confirmation code is <%= @confirmable.confirmation_code %>.
|
@@ -0,0 +1 @@
|
|
1
|
+
Your reset password code is <%= @recoverable.reset_password_code %>.
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: josevalim-auth_helpers
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- "Jos\xC3\xA9 Valim"
|
@@ -51,6 +51,10 @@ files:
|
|
51
51
|
- lib/auth_helpers/spec/recoverable.rb
|
52
52
|
- lib/auth_helpers/spec/rememberable.rb
|
53
53
|
- lib/auth_helpers/spec/validatable.rb
|
54
|
+
- views/auth_helpers/notifier/confirmation_code.erb
|
55
|
+
- views/auth_helpers/notifier/email_changed.erb
|
56
|
+
- views/auth_helpers/notifier/new_account.erb
|
57
|
+
- views/auth_helpers/notifier/reset_password.erb
|
54
58
|
has_rdoc: true
|
55
59
|
homepage: http://github.com/josevalim/auth_helpers
|
56
60
|
post_install_message:
|