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 +4 -4
- data/lib/rails_settlement/version.rb +1 -1
- data/lib/rails_settlement.rb +2 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8765d1ef60db470409b267f76185cbdf35d4c0c7d06019c335f4e31b9846fbe5
|
4
|
+
data.tar.gz: 152505edcd4f98175058775bd71aea9feb11fdd481666f37d3fcbcd2747e971d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 145fc2bad6d91b923477e12f4f4dc1d4a8cead461e87ff8ad24fd822dceb9e3b88b9f27b70ab2eb4946be2ec097509e849c204af6b3695e6e075cd6b4faa3da9
|
7
|
+
data.tar.gz: 54c441d03604c4e5a13f38b67f8bb155bff4fee312641fc046bf12aa4e1260c03514ac698f189bcdbed50f2b1f86f38d823a693a10afb9626c6d6372eed1bc4a
|
data/lib/rails_settlement.rb
CHANGED
@@ -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
|
-
|
24
|
+
query = _rs_associated_scope(scoped_relation: scoped_klass, associated_to: associated_to)
|
25
25
|
|
26
|
-
instance_variable_set("@#{variable}",
|
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.
|
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-
|
11
|
+
date: 2024-03-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activerecord
|