coalescing_panda 5.0.0.beta.2 → 5.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/coalescing_panda/controller_helpers.rb +8 -8
- data/lib/coalescing_panda/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d645cd8c2b844e464a37181c7810119004db0d11f74fb1293e97d7230412e8b3
|
4
|
+
data.tar.gz: e2741818208ab1301551d47c9063d20ee9bbb0a58e6db63b164cc068b0c2c76a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6430b3b457aa5776cd8590228794fcb77537824dbec08356ae9a512bf268e357e9a0f7e0db900ffa33d1f261964b393443719aa4a407b61970b26b19e7f65ce7
|
7
|
+
data.tar.gz: 3a4853c0b20ffc72041e5157f5a0813a8c5e30c27648b23193fc9d94652adaeda01ded2ef829e6e70617d6a02a7e89841cd5615474d0c866242fc435ba0d3eca
|
@@ -218,26 +218,26 @@ module CoalescingPanda
|
|
218
218
|
# nicely with webpack-dev-server live reloading (otherwise
|
219
219
|
# you get an access error every time it tries to live reload).
|
220
220
|
|
221
|
-
def redirect_with_session_to(path, id_or_resource = nil,
|
222
|
-
if Rails.env.development?
|
223
|
-
redirect_development_mode(path, id_or_resource,
|
221
|
+
def redirect_with_session_to(path, id_or_resource = nil, redirect_params = {})
|
222
|
+
if Rails.env.development? || Rails.env.test?
|
223
|
+
redirect_development_mode(path, id_or_resource, redirect_params)
|
224
224
|
else
|
225
|
-
redirect_production_mode(path, id_or_resource,
|
225
|
+
redirect_production_mode(path, id_or_resource, redirect_params)
|
226
226
|
end
|
227
227
|
end
|
228
228
|
|
229
|
-
def redirect_development_mode(path, id_or_resource = nil,
|
229
|
+
def redirect_development_mode(path, id_or_resource = nil, redirect_params)
|
230
230
|
redirect_to send(path, id_or_resource, {
|
231
231
|
session_key: current_session.session_key,
|
232
232
|
organization_id: current_lti_account.id
|
233
|
-
}.merge(
|
233
|
+
}.merge(redirect_params))
|
234
234
|
end
|
235
235
|
|
236
|
-
def redirect_production_mode(path, id_or_resource = nil,
|
236
|
+
def redirect_production_mode(path, id_or_resource = nil, redirect_params)
|
237
237
|
redirect_to send(path, id_or_resource, {
|
238
238
|
encrypted_session_key: encrypted_session_key,
|
239
239
|
organization_id: current_lti_account.id
|
240
|
-
}.merge(
|
240
|
+
}.merge(redirect_params))
|
241
241
|
end
|
242
242
|
|
243
243
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: coalescing_panda
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 5.0.0
|
4
|
+
version: 5.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Nathan Mills
|
@@ -563,9 +563,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
563
563
|
version: '0'
|
564
564
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
565
565
|
requirements:
|
566
|
-
- - "
|
566
|
+
- - ">="
|
567
567
|
- !ruby/object:Gem::Version
|
568
|
-
version:
|
568
|
+
version: '0'
|
569
569
|
requirements: []
|
570
570
|
rubygems_version: 3.1.2
|
571
571
|
signing_key:
|