active_interaction 1.6.0 → 1.6.1

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: c3902ef15c3ae5f01fc8488e949ebeadea266a24
4
- data.tar.gz: 1465a2163042d03ca351af7fd735b9cfa7404aa1
3
+ metadata.gz: 4dfc633bc6a2816016866f2a1a61c2a20805c28a
4
+ data.tar.gz: 53931759d4d2158be56ada22b2398a7ab539f119
5
5
  SHA512:
6
- metadata.gz: 4991f73428cf14bf5793fc5ad76ad8aa298da83ec030135d15770a459f42396f961f5eb9042dcf46531c63dd87255c697a5fb6d3e497164d2272e8d58de9d6ef
7
- data.tar.gz: 0095a818c2d81597499af06a6967097ffdf2953089cf91c2a4ef1de196a57b95e7d3de812c7c722faa66139faeca19c83093d2043fa64c0ce828853e3f902dd3
6
+ metadata.gz: 8c1a71ae668feffea91020d19b0c48633efd39c15404e6a3bfdbcaf6edef9a5f278402c7504ca77141ce761864a32ec09f8c2f6aab8b1b5b8a7951be9a132f74
7
+ data.tar.gz: bc56f77840ac9e9aace55893e73b4746bd0b95de9eb2e755648101f152fdd861ebfd6f4f786c6bb2e892a57604095a67c0ed0400a0ba1bf084cd40e5c67c798d
data/CHANGELOG.md CHANGED
@@ -1,3 +1,9 @@
1
+ # [1.6.1][] (2015-10-02)
2
+
3
+ ## Fixed
4
+
5
+ - [#303][]: Allowed ActiveRecord associations as inputs to array filters.
6
+
1
7
  # [1.6.0][] (2015-05-06)
2
8
 
3
9
  ## Added
@@ -396,6 +402,7 @@
396
402
 
397
403
  - Initial release.
398
404
 
405
+ [1.6.1]: https://github.com/orgsync/active_interaction/compare/v1.6.0...v1.6.1
399
406
  [1.6.0]: https://github.com/orgsync/active_interaction/compare/v1.5.1...v1.6.0
400
407
  [1.5.1]: https://github.com/orgsync/active_interaction/compare/v1.5.0...v1.5.1
401
408
  [1.5.0]: https://github.com/orgsync/active_interaction/compare/v1.4.1...v1.5.0
@@ -517,3 +524,4 @@
517
524
  [#248]: https://github.com/orgsync/active_interaction/issues/248
518
525
  [#256]: https://github.com/orgsync/active_interaction/issues/256
519
526
  [#265]: https://github.com/orgsync/active_interaction/issues/265
527
+ [#303]: https://github.com/orgsync/active_interaction/issues/303
@@ -9,7 +9,7 @@ require 'active_model'
9
9
  #
10
10
  # @since 1.0.0
11
11
  #
12
- # @version 1.6.0
12
+ # @version 1.6.1
13
13
  module ActiveInteraction
14
14
  DEPRECATOR =
15
15
  if ::ActiveSupport::Deprecation.respond_to?(:new)
@@ -65,8 +65,12 @@ module ActiveInteraction
65
65
  def classes
66
66
  result = [Array]
67
67
 
68
- if ActiveRecord.const_defined?(:Relation)
69
- result.push(ActiveRecord::Relation)
68
+ %w[
69
+ ActiveRecord::Relation
70
+ ActiveRecord::Associations::CollectionProxy
71
+ ].each do |name|
72
+ next unless (klass = name.safe_constantize)
73
+ result.push(klass)
70
74
  end
71
75
 
72
76
  result
@@ -5,5 +5,5 @@ module ActiveInteraction
5
5
  # The version number.
6
6
  #
7
7
  # @return [Gem::Version]
8
- VERSION = Gem::Version.new('1.6.0')
8
+ VERSION = Gem::Version.new('1.6.1')
9
9
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: active_interaction
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.6.0
4
+ version: 1.6.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Aaron Lasseigne
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2015-05-06 00:00:00.000000000 Z
12
+ date: 2015-10-02 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: activemodel
@@ -273,7 +273,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
273
273
  version: '0'
274
274
  requirements: []
275
275
  rubyforge_project:
276
- rubygems_version: 2.4.6
276
+ rubygems_version: 2.4.5
277
277
  signing_key:
278
278
  specification_version: 4
279
279
  summary: Manage application specific business logic.