activerecord-bixformer 0.4.16 → 0.4.17

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
  SHA1:
3
- metadata.gz: aa08d03bceb2f82701c241dc26d52e58c3135b00
4
- data.tar.gz: 27aaad5bd709590fbaab8a1406b09f5d98156072
3
+ metadata.gz: 078c30908de9e4bc0604a1d62bfff820a57644d9
4
+ data.tar.gz: 4122a19b05d79688b8862576f516b82ebf3667b4
5
5
  SHA512:
6
- metadata.gz: fc0643c1af31df56ee1a95ab6faa0f4d3456edadf0cca95e85d9c2e52371cc37657a666af68b35918559af9c40dd588b0d44cdff9c0fcd0b2dafcf53f21679d2
7
- data.tar.gz: 0fe951f646c7df0e0807da9befe1d1e69e3ca6b8aa64e59168e34fc0bb0a35e20754890320930b70b1d2504584d6f18a03ecc7c6ed716aa1ee2af4707ea0b7a0
6
+ metadata.gz: 3a95d90a738354a0824b3194af7791c2fb2b51cd906cb245dec548239079a3869fa213a6500141113752888c1ee104b98f1d75341c722a39f1ce3e57174867a2
7
+ data.tar.gz: 13ec0040a6f143908150e80ae9b5a92124a5c6ec66a2919da9f4b52a9e67a47c7e9deda0d3f0751e49b7b737de1006e8c24b3f596143a0819d2e089f0cdb2b49
@@ -42,6 +42,10 @@ module ActiveRecord
42
42
  private
43
43
 
44
44
  def do_export(record_or_relation)
45
+ if record_or_relation.is_a?(::ActiveRecord::Relation)
46
+ record_or_relation = record_or_relation.where(@plan.pickup_value_for(self, :required_condition, {}))
47
+ end
48
+
45
49
  values = run_bixformer_callback :export, type: :attribute do
46
50
  # has_one でしか使わない想定なので record_or_relation は ActiveRecord::Base のはず
47
51
  @attributes.map do |attr|
@@ -1,5 +1,5 @@
1
1
  module ActiveRecord
2
2
  module Bixformer
3
- VERSION = "0.4.16"
3
+ VERSION = "0.4.17"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: activerecord-bixformer
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.16
4
+ version: 0.4.17
5
5
  platform: ruby
6
6
  authors:
7
7
  - Hiroaki Otsu
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-11-17 00:00:00.000000000 Z
11
+ date: 2016-11-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activerecord