object_attorney 1.0.1 → 1.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/lib/object_attorney/version.rb +1 -1
- data/lib/object_attorney.rb +3 -3
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
NGI4MzlkYzA2YTkxOTc0Yzc1ZWJkOGIxYzk1Y2NjNGExY2Q2YWExOQ==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
ZjBkNGJmMTNmMjgxYWY0NjRhYjgxZmNlNWI1MDliY2JmMjMwMzQ2NA==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
YjI0MzM3ZTRjMzM2MTYxYmIxZTg0ZTU4YzRkNjkwMzk0MTYzOTZjNDI1NGIz
|
10
|
+
Y2IxNDJjY2U3N2U0NzhlOGJhMzViMTQxYmYzZmQ1ZDIwZDhhNzFiNzNjODk5
|
11
|
+
MzQyNThmNjU5ZjdiMGRlODM0MGZjZDY4ODA2ZTdlY2JhMDRkNmI=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
ZmU1NWM2NTJjMGY3MjlmOGJkNGQzZTUxMzVjY2RiMTVlZjQ2OTNjOGNlMjU2
|
14
|
+
NTAyMzg5YTk0ZTBjOTIyYWY2OThhMTkxYjhhOWFmZDk5ZTMxMTkyMzY3MTQz
|
15
|
+
MWU3NmZjM2I2Y2YzNGI2NWFhODIyNDFjNGI2YzE0Y2I2MTU1NTI=
|
data/lib/object_attorney.rb
CHANGED
@@ -130,8 +130,8 @@ module ObjectAttorney
|
|
130
130
|
|
131
131
|
translation = I18n.translate(defaults.shift, options.merge(default: defaults))
|
132
132
|
|
133
|
-
if translation == no_translation && represented_object_class.respond_to?(:human_attribute_name)
|
134
|
-
translation = represented_object_class.human_attribute_name(attribute_key_name, options)
|
133
|
+
if translation == no_translation && @@represented_object_class.respond_to?(:human_attribute_name)
|
134
|
+
translation = @@represented_object_class.human_attribute_name(attribute_key_name, options)
|
135
135
|
end
|
136
136
|
|
137
137
|
translation
|
@@ -142,7 +142,7 @@ module ObjectAttorney
|
|
142
142
|
namespace = self.parents.detect do |n|
|
143
143
|
n.respond_to?(:use_relative_model_naming?) && n.use_relative_model_naming?
|
144
144
|
end
|
145
|
-
ActiveModel::Name.new(represented_object_class || self, namespace)
|
145
|
+
ActiveModel::Name.new(@@represented_object_class || self, namespace)
|
146
146
|
end
|
147
147
|
end
|
148
148
|
|