active_record-acts_as 2.3.0 → 2.3.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
  SHA1:
3
- metadata.gz: 003f08a2aa83c2fbd3b38d573f53b0a54b2f08f4
4
- data.tar.gz: 9fc859b6b9a7a6139950d6f33d5aaaae767ba61b
3
+ metadata.gz: 649359dfef206fea9b42d2b8ec4c7c303e7711bd
4
+ data.tar.gz: bdb45afb463b19d4c203fbf33aaa7f7df83eb6b6
5
5
  SHA512:
6
- metadata.gz: 62fcb7cd4f2a32c18375409f47afa2cdcd2478f1cc56954dd1e5b8910e7414b6d5eb6cd9c02455827a5cfdcb355afec05bcb3c0730df85c7f29a5bec884ee228
7
- data.tar.gz: cbd963f8a2b48ec52fe2763ff966f14fd110335d6f64d5a537761a755c5a4a4be31143cf74b5d745c2a0a8078006998c35b628c0abb7402d50114aaaa017b6e4
6
+ metadata.gz: 65771a5b9157b116e2d1bf6c9e27bbd8ee0aba57543a99dff471ed02194ff39edbb85e7d165e562515a7631407979b07bb8e32ef416459ad77bb04f7e569eefa
7
+ data.tar.gz: 8b86a5551db05eccf02dec335d48d2c10bc13198213a4b5839b4cdaf8a7444536bad7290cfcd83d9c95ab5f99bede21d7eca1ffd5827524cd0ee1ae1a057ac35
data/CHANGELOG.md CHANGED
@@ -4,6 +4,17 @@ All notable changes to this project will be documented in this file.
4
4
  The format is based on [Keep a Changelog](http://keepachangelog.com/)
5
5
  and this project adheres to [Semantic Versioning](http://semver.org/).
6
6
 
7
+ ## [2.3.1] - 2017-04-15
8
+ ### Fixed
9
+ - Make calling supermodel class methods work through relations/associations as well
10
+
11
+ ## [2.3.0] - 2017-04-12
12
+ ### Fixed
13
+ - Prevent duplicate validation errors (fixes https://github.com/krautcomputing/active_record-acts_as/issues/2)
14
+
15
+ ### Added
16
+ - Added support for touching submodel attributes (https://github.com/krautcomputing/active_record-acts_as/pull/3, thanks to [dezmathio](https://github.com/dezmathio)!)
17
+
7
18
  ## [2.2.1] - 2017-04-08
8
19
  ### Fixed
9
20
  - Make sure submodel instance changes are retained when calling `submodel_instance.acting_as.specific`
@@ -69,7 +80,9 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
69
80
  ### Fixed
70
81
  - Fixed `remove_actable` migration helper (https://github.com/hzamani/active_record-acts_as/pull/71, thanks to [nuclearpidgeon](https://github.com/nuclearpidgeon)!)
71
82
 
72
- [Unreleased]: https://github.com/krautcomputing/active_record-acts_as/compare/v2.2.1...HEAD
83
+ [Unreleased]: https://github.com/krautcomputing/active_record-acts_as/compare/v2.3.1...HEAD
84
+ [2.3.1]: https://github.com/krautcomputing/active_record-acts_as/compare/v2.3.0...v2.3.1
85
+ [2.3.0]: https://github.com/krautcomputing/active_record-acts_as/compare/v2.2.1...v2.3.0
73
86
  [2.2.1]: https://github.com/krautcomputing/active_record-acts_as/compare/v2.2.0...v2.2.1
74
87
  [2.2.0]: https://github.com/krautcomputing/active_record-acts_as/compare/v2.1.1...v2.2.0
75
88
  [2.1.1]: https://github.com/krautcomputing/active_record-acts_as/compare/v2.1.0...v2.1.1
@@ -19,6 +19,10 @@ module ActiveRecord
19
19
  acting_as_model.where(actable_id: select(:id))
20
20
  end
21
21
 
22
+ def respond_to_missing?(method, include_private = false)
23
+ acting_as_model.respond_to?(method, include_private) || super
24
+ end
25
+
22
26
  def method_missing(method, *args, &block)
23
27
  if acting_as_model.respond_to?(method)
24
28
  result = acting_as_model.public_send(method, *args, &block)
@@ -1,6 +1,6 @@
1
1
  module ActiveRecord
2
2
  module ActsAs
3
- VERSION = "2.3.0"
3
+ VERSION = "2.3.1"
4
4
  end
5
5
  end
6
6
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: active_record-acts_as
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.3.0
4
+ version: 2.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Hassan Zamani
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2017-04-12 00:00:00.000000000 Z
12
+ date: 2017-04-15 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: sqlite3