activerecord-humanized_errors 1.0.2 → 1.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3c588be2d000a46550e933b7823e5cc2d80991bc
4
- data.tar.gz: ecb6f50324f49d4190e112ce312ecb83a8cd3876
3
+ metadata.gz: 98bc2e77ee1473cb37291c7461d835aac723f04f
4
+ data.tar.gz: e182427095ecef5774e1c06b0bfdb8c76a1ebdca
5
5
  SHA512:
6
- metadata.gz: 2466dba2e1b33ab7a8a05db13142e0e9d88ed85d7f9020cabef3955dd013b762950b927905eb4c2e58c38f22d9492f3e249ba89133d4df8f3c3a9a3ef9ad66d0
7
- data.tar.gz: e4a6fd20312b482ee21f74336597b92ae688db354d96a993b59ca18d34c0a878ef3c4f3f77e82ad560905a44809e61fdb00b8a63df83b83b8b3613c14d4b657b
6
+ metadata.gz: d65bd0b26d62d046fd0aceecb14d33181cbcb17f72359fd31ca08bd4c0cc2284c1973f3c53f3514e79992e4dd9c75565d8b9d47affa29ad59b9a8a304b61f228
7
+ data.tar.gz: cc4bfc84795706b4c7a1c1d94a83ee57d1baf6a66f079a9d577e31754c52cb7bff05cb150d379273bb12be08ba16a9d141343d39a7ab505df0e2c6985045913d
data/README.md CHANGED
@@ -39,6 +39,12 @@ Now you can make use of the humanized_errors method:
39
39
  irb(main):002:0> _.humanized_errors
40
40
  => "Name can't be blank, Email can't be blank"
41
41
 
42
+ ## Compatibility
43
+
44
+ Preferred used on rails or activerecord >= 4
45
+
46
+ Supports rails 2.3.18+, locking to [v1.1.x](../../releases/tag/v1.1.0)
47
+
42
48
  ## Contributing
43
49
 
44
50
  1. Fork it ( http://github.com/joiggama/activerecord-humanized_errors/fork )
@@ -2,8 +2,7 @@ module ActiveRecord
2
2
 
3
3
  module HumanizedErrors
4
4
  def humanized_errors
5
- errors.clear
6
- send :run_validations!
5
+ valid?
7
6
  errors.full_messages.join ', '
8
7
  end
9
8
  end
@@ -1,5 +1,5 @@
1
1
  module ActiveRecord
2
2
  module HumanizedErrors
3
- VERSION = '1.0.2'
3
+ VERSION = '1.1.0'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: activerecord-humanized_errors
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.2
4
+ version: 1.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ignacio Galindo
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-03-17 00:00:00.000000000 Z
11
+ date: 2014-03-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler