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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: dd73c8d74d8ff9e3f912f41181c1c8fe544f8c3a9b9f6f065288207d99b5d116
4
- data.tar.gz: bdf48adfe5a2bff8f3b660dfa09fce7217ca62447dc633c89a290568e42707f0
3
+ metadata.gz: 957cacf5cbca5ad0bbc4f543856f54a56cd55e9ec4513bc52467229a92690481
4
+ data.tar.gz: a9917febbae3f5f281ef4ede81bce9843e8224cfb444fd19a2ebc6fcc8a89aad
5
5
  SHA512:
6
- metadata.gz: 15abab96e0b079ad43a759c8c3eaa221d5c85406780f6255dc49f2f6723222bdad1c3470f79c7fe0c5c9dc53bdd67722b00039bda55e1cb76df20a6051b48fc7
7
- data.tar.gz: cdcc37dfb3eaa17ceef2ca2f938e8837b1cfeec5189c815355ae2d385bc70db71c1a3ab139dcc812c1bdece51c2b5d72b702bbadb39596b1a3e09dc5b0fafbc7
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])
@@ -3,7 +3,7 @@
3
3
  module ActiveRecord
4
4
  module Acts
5
5
  module List
6
- VERSION = '1.2.5'
6
+ VERSION = '1.2.6'
7
7
  end
8
8
  end
9
9
  end
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.5
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-20 00:00:00.000000000 Z
12
+ date: 2025-10-21 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: activerecord