statesman-multi_state 0.2.1 → 0.2.2
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: 97dc94e4e800c1b91c2204e074e5928c3d318209aae91334bf92969b837c8630
|
4
|
+
data.tar.gz: 7944ffe74d05497c0661cfbb1490f7b88d4ad72a3925c1bf9cd93b934e0a6753
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ed8b84f4a8ad5b85dc909c9ff128939f50a94f1a4fb51ff8054ffa6346d59fef1ef760482d67e48263aca911196cfcdf19be78fe5efd34f37156da0b472a82b3
|
7
|
+
data.tar.gz: 424f636e766eabeb2480e791e5a647370dcd56f1618d449c6ba75c6adfcacc9b7005f2f29dbfd31393454bf3e96e81c881d9663dea047428471d66580a9c9b8f
|
@@ -10,7 +10,7 @@ module Statesman
|
|
10
10
|
|
11
11
|
class_methods do
|
12
12
|
def has_one_state_machine(field_name, state_machine_klass:, transition_klass:,
|
13
|
-
transition_name: transition_klass.to_s.underscore.
|
13
|
+
transition_name: transition_klass.to_s.demodulize.underscore.pluralize.to_sym, virtual_attribute_name: "#{field_name}_state_form",
|
14
14
|
transition_foreign_key: nil)
|
15
15
|
state_machine_name = "#{field_name}_state_machine"
|
16
16
|
|