rails_settlement 1.4.0 → 1.4.1

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
  SHA256:
3
- metadata.gz: fea25e5290b99af4236253654e98e65428fbb8845cd3952ed57bddbfbd877aa5
4
- data.tar.gz: bf7b83e4dcd6cde28b6fbca6bf96db247ec07d75e4ea76ffa8caec1f775dc7e3
3
+ metadata.gz: 8765d1ef60db470409b267f76185cbdf35d4c0c7d06019c335f4e31b9846fbe5
4
+ data.tar.gz: 152505edcd4f98175058775bd71aea9feb11fdd481666f37d3fcbcd2747e971d
5
5
  SHA512:
6
- metadata.gz: 61f3e0eb9b9909119252dfda0cced54624da78f22c531bf6ae7b03cdd30e3be30485182fda294c83d01475b0df03e56ebd4ded6fdbd1875605e053a677b4dddf
7
- data.tar.gz: c19ca70fec032ce9b3ffb0868bbc92d4f4322a0138e1e5240d11a5581820b26824ae0ec2a13ef284c301c18b3b7abcb1d1c249e1224c9f0f366007a0d19ebbcc
6
+ metadata.gz: 145fc2bad6d91b923477e12f4f4dc1d4a8cead461e87ff8ad24fd822dceb9e3b88b9f27b70ab2eb4946be2ec097509e849c204af6b3695e6e075cd6b4faa3da9
7
+ data.tar.gz: 54c441d03604c4e5a13f38b67f8bb155bff4fee312641fc046bf12aa4e1260c03514ac698f189bcdbed50f2b1f86f38d823a693a10afb9626c6d6372eed1bc4a
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module RailsSettlement
4
- VERSION = "1.4.0"
4
+ VERSION = "1.4.1"
5
5
  end
@@ -21,9 +21,9 @@ module RailsSettlement
21
21
  associated_to = _rs_handle_associated_to(options: options)
22
22
 
23
23
  before_action(**options) do
24
- scoped_klass = _rs_associated_scope(scoped_relation: scoped_klass, associated_to: associated_to)
24
+ query = _rs_associated_scope(scoped_relation: scoped_klass, associated_to: associated_to)
25
25
 
26
- instance_variable_set("@#{variable}", scoped_klass.find_by(param_options[:model_key] => params[param_options[:params_key]]))
26
+ instance_variable_set("@#{variable}", query.find_by(param_options[:model_key] => params[param_options[:params_key]]))
27
27
  raise ActiveRecord::RecordNotFound if raisable && instance_variable_get("@#{variable}").nil?
28
28
  end
29
29
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rails_settlement
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.0
4
+ version: 1.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tejas
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-03-06 00:00:00.000000000 Z
11
+ date: 2024-03-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activerecord