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 +4 -4
- data/CHANGELOG.md +14 -1
- data/lib/active_record/acts_as/class_methods.rb +4 -0
- data/lib/active_record/acts_as/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 649359dfef206fea9b42d2b8ec4c7c303e7711bd
|
4
|
+
data.tar.gz: bdb45afb463b19d4c203fbf33aaa7f7df83eb6b6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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.
|
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)
|
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.
|
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
|
+
date: 2017-04-15 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: sqlite3
|