invitation 0.4 → 0.4.1
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 94e95485452bd9f1629f246807eaa7c986fc09b3
|
4
|
+
data.tar.gz: 73b385826f49cea7388edc00d21f895d426e82f8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0d8fbc893b975faa719a60b77ce52c3419ddd7436855fa775ef88f6292a2c298dbc31ea8109d0e2038fc9d7541543f035fa49fd51def5851880b21e24b62af58
|
7
|
+
data.tar.gz: b346b58a716f2405f858ca8df0a21562af6222a913532a83c852385a0061c45b16be1e86440bd4a36c35afa02b0e0ac770a74595d81b01463cfa9a4dd4558c66
|
@@ -26,29 +26,10 @@ module Invitation
|
|
26
26
|
end
|
27
27
|
end
|
28
28
|
|
29
|
-
# def verify_invitable
|
30
|
-
# return unless options[:invitable]
|
31
|
-
# options[:invitable].each do |invitable|
|
32
|
-
# unless File.exists?(invitable_file_path invitable)
|
33
|
-
# puts "Exiting: the model class you specified to make invitable, #{invitable}, is not found."
|
34
|
-
# exit 1
|
35
|
-
# end
|
36
|
-
# end
|
37
|
-
# end
|
38
|
-
|
39
29
|
def inject_into_user_model
|
40
30
|
inject_into_class model_path, model_class_name, " include Invitation::User\n\n"
|
41
31
|
end
|
42
32
|
|
43
|
-
# def inject_into_invitables
|
44
|
-
# return unless options[:invitable]
|
45
|
-
# options[:invitable].each do |invitable|
|
46
|
-
# path = invitable_file_path(invitable)
|
47
|
-
# class_name = invitable.classify
|
48
|
-
# inject_into_class path, class_name, " include Invitation::Invitable\n\n"
|
49
|
-
# end
|
50
|
-
# end
|
51
|
-
|
52
33
|
def copy_migration_files
|
53
34
|
copy_migration 'create_invites.rb'
|
54
35
|
end
|
@@ -2,6 +2,6 @@ Invitation.configure do |config|
|
|
2
2
|
# config.user_model = ::User
|
3
3
|
# config.user_registration_url = ->(params) { Rails.application.routes.url_helpers.sign_up_url(params) }
|
4
4
|
# config.mailer_sender = 'reply@example.com'
|
5
|
-
# config.url_after_invite = '/'
|
6
5
|
# config.routes = true
|
6
|
+
# config.case_sensitive_email = true
|
7
7
|
end
|
data/lib/invitation/version.rb
CHANGED