statesman-multi_state 0.2.0 → 0.2.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
  SHA256:
3
- metadata.gz: 35f6636a6f4af3bf83393099ff9da9cce30e4cc8063a88e1c7ec24ea568ff2bb
4
- data.tar.gz: c6064ca504b13bafe10e4c173b557c0fa27b5697603af0a9ed626946de9811d3
3
+ metadata.gz: a4b8c9c47ecda9c736feaf3a97086b56d2f019a5b979b8d9b636d6d3732159d0
4
+ data.tar.gz: 43ba1e393245d8c87fab6efdd457f0b335bd71d3658dab6f74af9713205bc9b9
5
5
  SHA512:
6
- metadata.gz: 711439772df22c7cb28c5dafc634fe0e3938aaf4ccaa22c499e0fc214a23e794ab3d17287e4eedad57853cec0e5445160381a93df893192168f2699b48f7d464
7
- data.tar.gz: c04a23f23852d80a3636dff62b0880d7f9c7da52ed55c7055429ce35b86655c4b57ec79eba84faacccb2ab8421e55276510ff4e10cc5f756891c47a807367c0c
6
+ metadata.gz: 33435bad1dde992be4d977ddba9cc7eec2b99c75e79bc00c1fdfebc27973c2f7ee93003fe1d3ac6fec0f65d87fcd288325eac5019cea75eba4e4e06995d24256
7
+ data.tar.gz: 3eaac52379397cd9fc2f97f5d623d2640bd490674a5932a051e55a792abb2f65c2ddc054c86495ed2fafd97a9348b5a375c1ef935b5b98f11999e9e3f2ae0a74
@@ -1,5 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
+ require 'statesman'
3
4
  require 'statesman/adapters/custom_active_record_queries'
4
5
 
5
6
  module Statesman
@@ -9,7 +10,7 @@ module Statesman
9
10
 
10
11
  class_methods do
11
12
  def has_one_state_machine(field_name, state_machine_klass:, transition_klass:,
12
- transition_name: transition_klass.to_s.underscore.pluralize.to_sym, virtual_attribute_name: "#{field_name}_state_form",
13
+ transition_name: transition_klass.to_s.underscore.demodulize.pluralize.to_sym, virtual_attribute_name: "#{field_name}_state_form",
13
14
  transition_foreign_key: nil)
14
15
  state_machine_name = "#{field_name}_state_machine"
15
16
 
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Statesman
4
4
  module MultiState
5
- VERSION = '0.2.0'
5
+ VERSION = '0.2.1'
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: statesman-multi_state
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chedli Bourguiba
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-10-04 00:00:00.000000000 Z
11
+ date: 2023-10-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails