devise_invitable 0.4.0 → 0.4.1
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of devise_invitable might be problematic. Click here for more details.
- data/README.rdoc +3 -3
- data/lib/devise_invitable/rails.rb +4 -1
- data/lib/devise_invitable/version.rb +1 -1
- metadata +4 -4
data/README.rdoc
CHANGED
@@ -4,7 +4,7 @@ It adds support to devise[http://github.com/plataformatec/devise] for send invit
|
|
4
4
|
|
5
5
|
DeviseInvitable currently only support Rails 3, if you want to use it with Rails 2.3 you must install version {0.2.3}[http://rubygems.org/gems/devise_invitable/versions/0.2.3]
|
6
6
|
|
7
|
-
== Installation for Rails ~> 3.0 and Devise ~> 1.
|
7
|
+
== Installation for Rails ~> 3.0 and Devise ~> 1.2
|
8
8
|
|
9
9
|
Install DeviseInvitable gem, it will also install dependencies (such as devise and warden):
|
10
10
|
|
@@ -12,8 +12,8 @@ Install DeviseInvitable gem, it will also install dependencies (such as devise a
|
|
12
12
|
|
13
13
|
Add DeviseInvitable to your Gemfile (and Devise if you weren't using them):
|
14
14
|
|
15
|
-
gem 'devise', '~> 1.
|
16
|
-
gem 'devise_invitable', '~> 0.
|
15
|
+
gem 'devise', '~> 1.2.0'
|
16
|
+
gem 'devise_invitable', '~> 0.4.0'
|
17
17
|
|
18
18
|
=== Automatic installation
|
19
19
|
|
@@ -4,7 +4,10 @@ module DeviseInvitable
|
|
4
4
|
ActiveSupport.on_load(:action_controller) { include DeviseInvitable::Controllers::UrlHelpers }
|
5
5
|
ActiveSupport.on_load(:action_view) { include DeviseInvitable::Controllers::UrlHelpers }
|
6
6
|
|
7
|
-
|
7
|
+
# We use to_prepare instead of after_initialize here because Devise is a Rails engine; its
|
8
|
+
# mailer is reloaded like the rest of the user's app. Got to make sure that our mailer methods
|
9
|
+
# are included each time Devise::Mailer is (re)loaded.
|
10
|
+
config.to_prepare do
|
8
11
|
require 'devise/mailer'
|
9
12
|
Devise::Mailer.send :include, DeviseInvitable::Mailer
|
10
13
|
end
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: devise_invitable
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 13
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 4
|
9
|
-
-
|
10
|
-
version: 0.4.
|
9
|
+
- 1
|
10
|
+
version: 0.4.1
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Sergio Cambra
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2011-
|
18
|
+
date: 2011-04-01 00:00:00 +02:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|