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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a4b8c9c47ecda9c736feaf3a97086b56d2f019a5b979b8d9b636d6d3732159d0
|
4
|
+
data.tar.gz: 43ba1e393245d8c87fab6efdd457f0b335bd71d3658dab6f74af9713205bc9b9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
|
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.
|
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-
|
11
|
+
date: 2023-10-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|