acts_as_list 1.2.5 → 1.2.6
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 +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/acts_as_list/active_record/acts/list.rb +5 -0
- data/lib/acts_as_list/version.rb +1 -1
- 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: 957cacf5cbca5ad0bbc4f543856f54a56cd55e9ec4513bc52467229a92690481
|
4
|
+
data.tar.gz: a9917febbae3f5f281ef4ede81bce9843e8224cfb444fd19a2ebc6fcc8a89aad
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c37e7b4e1ffe907f923072f43d4b587f7a55cf6b34e637b53af8bb73062365aa7328e020b50a1d6c63734dd41bf7a6427fa47485ba5ea5dc2d17806743f383d5
|
7
|
+
data.tar.gz: 63c7a691d02b65619e1203fa4eb35316df1e46c4ab8e4e103dcd5e869a762449abac2e31a45671abc4b2291c442bcec8e95f51f56a3a918a22df94de47378e12
|
data/CHANGELOG.md
CHANGED
@@ -6,6 +6,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
6
6
|
|
7
7
|
## Unreleased
|
8
8
|
|
9
|
+
## v1.2.6 - 2025-10-21
|
10
|
+
|
11
|
+
- Expose configuration via class-level method (acts_as_list_options) [\#447](https://github.com/brendon/acts_as_list/pull/447) ([anthony0030])
|
12
|
+
|
9
13
|
## v1.2.5 - 2025-10-21
|
10
14
|
|
11
15
|
- Fix crash when deleting an association with composite primary keys [\#450](https://github.com/brendon/acts_as_list/pull/450) ([smathieu])
|
@@ -27,6 +27,11 @@ module ActiveRecord
|
|
27
27
|
configuration = { column: "position", scope: "1 = 1", top_of_list: 1, add_new_at: :bottom, touch_on_update: true }
|
28
28
|
configuration.update(options) if options.is_a?(Hash)
|
29
29
|
|
30
|
+
# * Expose configuration via class-level method
|
31
|
+
define_singleton_method(:acts_as_list_options) do
|
32
|
+
configuration.dup.freeze
|
33
|
+
end
|
34
|
+
|
30
35
|
caller_class = self
|
31
36
|
|
32
37
|
ActiveRecord::Acts::List::PositionColumnMethodDefiner.call(caller_class, configuration[:column], configuration[:touch_on_update])
|
data/lib/acts_as_list/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: acts_as_list
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.2.
|
4
|
+
version: 1.2.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Swanand Pagnis
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2025-10-
|
12
|
+
date: 2025-10-21 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: activerecord
|