tramway-core 2.0 → 2.0.0.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: cc709cc658e3bb686e5cf2168db2563d04374053cb83d49b6a0b987971b86271
4
- data.tar.gz: 3093efbf62bad2d3e8316dd5f98c0d642c4f384529bd9168b85b6651a31f04ee
3
+ metadata.gz: 00bb04a9c6afb2c0803e4b0d8ee009ce9af3b511564793933c1e21862345fe16
4
+ data.tar.gz: f2b70d7ee88943a6e134764fc582830d46fbcc78eda2712e6974c5887432bfe6
5
5
  SHA512:
6
- metadata.gz: c4b131aa515137b26623ff4e9b894ff7d754532b42952d8c39eb9193c1226e90e6008dd76f43e5e9af80a1ef4fe2fa062c1d9c7c43ac3c272b77776cc79a95ed
7
- data.tar.gz: 4832bc73d550dd883c87f561c1227caa6e10d5ffe96a700654248eb58c5eade25ab7aed2814e585ac1c08d3ad2541f9a1251fed8727f6d8a8185e161cb4fc26a
6
+ metadata.gz: 49ec7b81fa82bf40b32f32d2a716f5affbbb7428b2934506697d6f3a79c9f34b2a849570e9f90b09da27af79738422748ec98ca5a576c71295b64dfe1415f93f
7
+ data.tar.gz: e623ac3c3a5e189459d5144a3227807ea4229eb6b5a54c49b65177c0da5d4c60d463e545c19f9459c3f25c1f22d0acef25ca8011171f84ce616d1e54ce155d5b
@@ -10,7 +10,7 @@ module Tramway::Core::Concerns::AttributesDecoratorHelper
10
10
  end
11
11
 
12
12
  def state_machine_view(object, attribute_name)
13
- object.aasm(attribute_name).human_state
13
+ I18n.t("state_machines.#{object.class.model_name.to_s.underscore}.#{attribute_name}.states.#{object.send(attribute_name)}")
14
14
  rescue
15
15
  object.aasm.human_state
16
16
  end
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Tramway
4
4
  module Core
5
- VERSION = '2.0'
5
+ VERSION = '2.0.0.1'
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tramway-core
3
3
  version: !ruby/object:Gem::Version
4
- version: '2.0'
4
+ version: 2.0.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Pavel Kalashnikov
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2021-02-04 00:00:00.000000000 Z
12
+ date: 2021-02-06 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: audited