simple_model 1.2.10 → 1.2.11

Sign up to get free protection for your applications and to get access to all the features.
@@ -36,6 +36,7 @@ module SimpleModel
36
36
  def create_error_list(key,value)
37
37
  error_items = ""
38
38
  if value.is_a?(Array)
39
+ value.uniq!
39
40
  if value.length == 1
40
41
  self.errors_count = (self.errors_count.to_i + 1)
41
42
  error_items << "<li>#{key.to_s.titleize} #{value[0]}<li>"
@@ -1,3 +1,3 @@
1
1
  module SimpleModel
2
- VERSION = "1.2.10"
2
+ VERSION = "1.2.11"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: simple_model
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.10
4
+ version: 1.2.11
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-04-01 00:00:00.000000000 Z
12
+ date: 2013-05-20 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: activesupport