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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 75812823bdafd977f5b705436041811fdc3c52f6
4
- data.tar.gz: 291339958c984c2ddf12ba64c67a7a4a41f2745e
3
+ metadata.gz: 706da20850a8bebcdf95441f5e73f4ca4546b6c7
4
+ data.tar.gz: cca46da4375726990fb1baf95a45d5dc71110945
5
5
  SHA512:
6
- metadata.gz: 176508cd313e9512f0ecb12ae171f488964576dc528f48dacf9c0144c15d3f8fe4ab5da8d80d914a21f183c64d442f8a5112317f641acee14e94fb4f8a739ef0
7
- data.tar.gz: 2a880d453aa10b4cfc843133eb6658218d9c166611605dc3a207d318b55807722e2d24073f8362f9de37df0578df022dfa58cd5913e4d88e869e30c04807148d
6
+ metadata.gz: 49560685a591a02637696f2b0c4894aa03b944cadc691b471bd51df951e91cc711ce44f63445c437c821a7a7079f9e1aacc8373f5c8de600b4a991d8ea536c1e
7
+ data.tar.gz: 077640a1b609ee7e7eb440d7d719ff987ee0a93533c27bfd3734174c9b8350cae9c6397991c682a3e09bc946a99c9c102f5e24debffe55dff3c3b734fd6c8c3e
@@ -6,6 +6,7 @@ module RamenRails
6
6
 
7
7
  attr_accessor :manual_opt_in,
8
8
  :environment,
9
+ :logged_in_url,
9
10
  :return_url,
10
11
  :return_label,
11
12
  :ramen_js_asset_uri,
@@ -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
 
@@ -1,3 +1,3 @@
1
1
  module RamenRails
2
- VERSION = "0.1.2"
2
+ VERSION = "0.1.3"
3
3
  end
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.2
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-13 00:00:00.000000000 Z
11
+ date: 2015-05-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: actionpack