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 CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- Y2E0ZTUxMTNjOGM4OWRhYzA0OGUyMjc4ZDRlZWY4YjgzNTY0MzhjYw==
4
+ NzgzYjlhZDFlMzQyMDFkYzE4ZmEzMzg1MzZjYThiNmJmMzExYzliYQ==
5
5
  data.tar.gz: !binary |-
6
- MDg3YmJjYmM2YjQwYTQ2MmFlOWI5MGI0OWY4NmY1NDQ5NmU1ZmRjMA==
6
+ MjYxMzg1Y2MxNWRlZmQyNTRmZDE5NmJiZmYwMjE5M2IwMTEwMjc0ZA==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- YzhhODYxMjBkY2Q0Mzc3OWY4ZWJiMmI3ZDEwODY2ODc5MDBhNTllNTY0OGY5
10
- NTJhOTc3MTIxMmUxMmRlYmY1ZjRiYTZlNjA0Y2UwMDhlMzQ3NTdhNzljODNl
11
- Zjk0NjcyZWNhZTE3ODZiYTc5ODQ5NTUwMGM0OWRiODA2Mjg5M2E=
9
+ OTEwM2MzODZkYzhjMDNhNTA0NzBkNDRjZjg1ZjhjNTY2Nzg2YjYwYWY3MzZl
10
+ ZjUzNzY2MzVjYjYwOGE1OWIzNDY4MGIzOTVlYjY4YTYzYjAzMGRlNzg3MmJi
11
+ MWEyNjU4MjJiNWIyNWY4OTMwMGViNDU4NGQyODdjODc3OTYxNzk=
12
12
  data.tar.gz: !binary |-
13
- YmIwNDliM2YyNzk1MjUzYzYwMjZjZGRhMTQ5YzRjYmVkZDkwNTFkYzUwNjc0
14
- YmFhZjU1MGU2NjY2N2NiNTdmOGMyNzIzYTAxNWZkYjc4OTg4NTc1YTllOTFj
15
- NTQwZDM2ZGEyZTNjNmFhNzg5ZTFjYTdmNDNmNmYxZjY3MWE4NGQ=
13
+ ZDA0NjM1MmE2NDQ0OTc5NDY1MTdlZDM0YmM3NTk2MTE0MjIzMGM1MjRlM2Fm
14
+ NjQ2NDU0MWNjZDQ2OTBkNTMyYmFkNTIyYzhmOTU0ODAzODQxNjJjNTFkMTky
15
+ MTJkNTg5ZWYyYWM2MTU2ZWEzNTI2ZDEzYjRmNjg4NTNhODJlYmQ=
@@ -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
 
@@ -1,3 +1,3 @@
1
1
  module SmoothOperator
2
- VERSION = '1.30.5'
2
+ VERSION = '1.30.6'
3
3
  end
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.5
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-08-14 00:00:00.000000000 Z
11
+ date: 2014-09-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler