vario 1.0.5 → 1.0.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9088a7f9335191086e2f1f8f1cb904df70965f6fd70ddc570ba54553320c13de
4
- data.tar.gz: 397a9dcd2e917cba8b0465bdfc6f6933b747e74e119ad67035ac0793d7b5aa23
3
+ metadata.gz: c47660adc798f2ddb4e09725e140d57107a2b5f66eccbff37fca4b3d8e8f3230
4
+ data.tar.gz: 0c6b04dc76ea3b61b9fd5ca35b334b485404e18b7576e3dcd30337b7451bf099
5
5
  SHA512:
6
- metadata.gz: 9c2cef091ac91dfe6d85a5cff90fc02393b703e453b5b6d9ae66d81854f6e9027685b1a0096a088ab8b16a5d06366a35d70a136279f64dc1410d3770fbe6b1f7
7
- data.tar.gz: fbdd6d764f1ab453e6916b55bcea25ba99f8f08be5f81b60dde9d837e125dce9cac266d1332bb251eebd35d0d8c8fcd2d35c5994480f4c1f420d34b1c5f75738
6
+ metadata.gz: 1394d5ab1247d7386423e1547cbcaf181dd3758fc53b2b12aa676a9f8394bf76626796dabdf229c9a585a3ec2fd356a7f8a531e962e09c3aba7d4b27bc82729c
7
+ data.tar.gz: 8759bf321bdddaf09131fc9b5b1d2cc4513f689801ddf9f9dfe5426271732c9bea7cfd6b628b4fc164993832f4fad7a9916f2bc450eb227043a6f7338c39f190
@@ -27,8 +27,11 @@ module Vario
27
27
  @level.value = level_params[:value]
28
28
  @level.conditions = normalize_booleans(level_params[:conditions].to_h)
29
29
  @setting.save
30
-
31
- respond_with @setting, collection_location: -> { setting_path(@setting) }
30
+ if request.referer.present? && URI.parse(request.referer).path != setting_path(@setting)
31
+ redirect_to request.referer
32
+ else
33
+ respond_with @setting, collection_location: -> { setting_path(@setting) }
34
+ end
32
35
  end
33
36
 
34
37
  def destroy
data/lib/vario/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Vario
4
- VERSION = "1.0.5"
4
+ VERSION = "1.0.6"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vario
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.5
4
+ version: 1.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andre Meij
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2025-02-19 00:00:00.000000000 Z
11
+ date: 2025-03-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: grape