tramway-core 3.0.0.1 → 3.0.0.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: 529b5f8a64a008d6bf7d0d06323887ef33d5437e87fa0ed740687b1cb6751400
|
4
|
+
data.tar.gz: 83fa2ee3b66c07d3473d6298007267e0faaa37404bc75fe486518358fcb7d1f1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2a30c44169bc75fff6ed5244a8fa498cd4ee206c43e7240e23982f581aacdb6ab80c370cdaec839f119c956003acfd84f9b3b19c1b9fc73ca20100dfcdbc387b
|
7
|
+
data.tar.gz: 9f754f5466c6fd0e0deb2b66ee84909f1162bee38f7d7e4a6217d73eef95cb98ed2471ce3a37adb680415f8c96b4ef5980c67f13ea1c510181ebf00a64ffe02f
|
@@ -20,7 +20,7 @@ module Tramway::Core::ApplicationForms::SubmitHelper
|
|
20
20
|
rescue StandardError => e
|
21
21
|
if e.try :name
|
22
22
|
Tramway::Error.raise_error :tramway, :core, :application_form, :save, :looks_like_you_have_method,
|
23
|
-
method_name: e.name.to_s.gsub('=', ''), model_class:
|
23
|
+
method_name: e.name.to_s.gsub('=', ''), model_class: model.class, class_name: self.class
|
24
24
|
else
|
25
25
|
raise e
|
26
26
|
end
|
@@ -34,7 +34,7 @@ class Tramway::Core::ApplicationRecord < ActiveRecord::Base
|
|
34
34
|
# FIXME: detect inhertited locales
|
35
35
|
class << self
|
36
36
|
def human_attribute_name(attribute_name, *_args)
|
37
|
-
excepted_attributes = %w[created_at updated_at
|
37
|
+
excepted_attributes = %w[created_at updated_at]
|
38
38
|
if attribute_name.to_s.in? excepted_attributes
|
39
39
|
I18n.t "activerecord.attributes.tramway/core/application_record.#{attribute_name}"
|
40
40
|
else
|
@@ -64,9 +64,4 @@ class Tramway::Core::ApplicationRecord < ActiveRecord::Base
|
|
64
64
|
AASM::StateMachineStore.fetch(self).machine_names
|
65
65
|
end
|
66
66
|
end
|
67
|
-
|
68
|
-
# FIXME: detect inhertited locales
|
69
|
-
def human_state_name
|
70
|
-
I18n.t "activerecord.state_machines.tramway/core/application_record.state.states.#{state}"
|
71
|
-
end
|
72
67
|
end
|
data/lib/tramway/core/version.rb
CHANGED
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: 3.0.0.
|
4
|
+
version: 3.0.0.2
|
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:
|
12
|
+
date: 2022-01-10 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: audited
|