mailkick 0.1.2 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/app/controllers/mailkick/subscriptions_controller.rb +4 -10
- data/lib/mailkick/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0750bea0ea92b3202ed0d741f50efb0c40ec7a1f
|
4
|
+
data.tar.gz: 55d4087445153084af0810e7e5a729eb379d3bbb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3fce62385ba937b6ad173db9a27d93dcb26a95e453868bf5f81b278ee1d8b5ce3ae98661aa4bc53894e07793ad6be240fc29b2294123717e03b4f4cf6916aa22
|
7
|
+
data.tar.gz: 57818f63ff5dba4a8c020e926a19bc5733e7b75c3b0278629ed2ca9ee010195d9791061f544cd5b8e06e8fa0b2173baa3c3459ecab3cd728e71095d75245a731
|
data/CHANGELOG.md
CHANGED
@@ -7,12 +7,12 @@ module Mailkick
|
|
7
7
|
|
8
8
|
def unsubscribe
|
9
9
|
Mailkick.opt_out(@options)
|
10
|
-
redirect_to subscription_path(
|
10
|
+
redirect_to subscription_path(params[:id])
|
11
11
|
end
|
12
12
|
|
13
13
|
def subscribe
|
14
14
|
Mailkick.opt_in(@options)
|
15
|
-
redirect_to subscription_path(
|
15
|
+
redirect_to subscription_path(params[:id])
|
16
16
|
end
|
17
17
|
|
18
18
|
protected
|
@@ -41,19 +41,13 @@ module Mailkick
|
|
41
41
|
helper_method :opted_out?
|
42
42
|
|
43
43
|
def subscribe_url
|
44
|
-
subscribe_subscription_path(
|
44
|
+
subscribe_subscription_path(params[:id])
|
45
45
|
end
|
46
46
|
helper_method :subscribe_url
|
47
47
|
|
48
48
|
def unsubscribe_url
|
49
|
-
unsubscribe_subscription_path(
|
49
|
+
unsubscribe_subscription_path(params[:id])
|
50
50
|
end
|
51
51
|
helper_method :unsubscribe_url
|
52
|
-
|
53
|
-
private
|
54
|
-
|
55
|
-
def url_token
|
56
|
-
@url_token ||= CGI.escape(params[:id])
|
57
|
-
end
|
58
52
|
end
|
59
53
|
end
|
data/lib/mailkick/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mailkick
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Andrew Kane
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-06-
|
11
|
+
date: 2015-06-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|