ramen-rails 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/lib/ramen-rails/config.rb +1 -0
- data/lib/ramen-rails/ramen_after_filter.rb +5 -0
- data/lib/ramen-rails/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: 706da20850a8bebcdf95441f5e73f4ca4546b6c7
|
4
|
+
data.tar.gz: cca46da4375726990fb1baf95a45d5dc71110945
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 49560685a591a02637696f2b0c4894aa03b944cadc691b471bd51df951e91cc711ce44f63445c437c821a7a7079f9e1aacc8373f5c8de600b4a991d8ea536c1e
|
7
|
+
data.tar.gz: 077640a1b609ee7e7eb440d7d719ff987ee0a93533c27bfd3734174c9b8350cae9c6397991c682a3e09bc946a99c9c102f5e24debffe55dff3c3b734fd6c8c3e
|
data/lib/ramen-rails/config.rb
CHANGED
@@ -51,6 +51,10 @@ module RamenRails
|
|
51
51
|
!!(response.body[CLOSING_BODY_TAG])
|
52
52
|
end
|
53
53
|
|
54
|
+
def logged_in_url
|
55
|
+
return controller.instance_eval(&RamenRails.config.logged_in_url) if RamenRails.config.logged_in_url
|
56
|
+
end
|
57
|
+
|
54
58
|
def return_url
|
55
59
|
return controller.instance_eval(&RamenRails.config.return_url) if RamenRails.config.return_url
|
56
60
|
ourl = Proc.new { request.original_url }
|
@@ -139,6 +143,7 @@ module RamenRails
|
|
139
143
|
obj[:user] = {}
|
140
144
|
obj[:timestamp] = Time.now.to_i
|
141
145
|
obj[:manual_opt_in] = manual_opt_in
|
146
|
+
obj[:logged_in_url] = logged_in_url if logged_in_url.present?
|
142
147
|
obj[:return_url] = return_url
|
143
148
|
obj[:return_label] = return_label
|
144
149
|
|
data/lib/ramen-rails/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ramen-rails
|
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
|
- Ryan Angilly
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-05-
|
11
|
+
date: 2015-05-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: actionpack
|