smooth_operator 1.30.5 → 1.30.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/lib/smooth_operator.rb +7 -0
- data/lib/smooth_operator/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
NzgzYjlhZDFlMzQyMDFkYzE4ZmEzMzg1MzZjYThiNmJmMzExYzliYQ==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
MjYxMzg1Y2MxNWRlZmQyNTRmZDE5NmJiZmYwMjE5M2IwMTEwMjc0ZA==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
OTEwM2MzODZkYzhjMDNhNTA0NzBkNDRjZjg1ZjhjNTY2Nzg2YjYwYWY3MzZl
|
10
|
+
ZjUzNzY2MzVjYjYwOGE1OWIzNDY4MGIzOTVlYjY4YTYzYjAzMGRlNzg3MmJi
|
11
|
+
MWEyNjU4MjJiNWIyNWY4OTMwMGViNDU4NGQyODdjODc3OTYxNzk=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
ZDA0NjM1MmE2NDQ0OTc5NDY1MTdlZDM0YmM3NTk2MTE0MjIzMGM1MjRlM2Fm
|
14
|
+
NjQ2NDU0MWNjZDQ2OTBkNTMyYmFkNTIyYzhmOTU0ODAzODQxNjJjNTFkMTky
|
15
|
+
MTJkNTg5ZWYyYWM2MTU2ZWEzNTI2ZDEzYjRmNjg4NTNhODJlYmQ=
|
data/lib/smooth_operator.rb
CHANGED
@@ -42,6 +42,13 @@ module SmoothOperator
|
|
42
42
|
|
43
43
|
validate :validate_induced_errors, :validate_nested_objects
|
44
44
|
|
45
|
+
def self.human_attribute_name(attribute_key_name, options = {})
|
46
|
+
HelperMethods.translate(
|
47
|
+
"attributes.#{model_name.i18n_key}.#{attribute_key_name}",
|
48
|
+
options
|
49
|
+
)
|
50
|
+
end
|
51
|
+
|
45
52
|
def column_for_attribute(attribute_name)
|
46
53
|
type = self.class.attribute_type(attribute_name)
|
47
54
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: smooth_operator
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.30.
|
4
|
+
version: 1.30.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- João Gonçalves
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-09-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|