sexy_validations 0.5.3 → 0.5.4

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.5.3
1
+ 0.5.4
@@ -62,28 +62,28 @@ module SexyValidations
62
62
  unless validations.blank?
63
63
  validations.each_pair do |validator, options|
64
64
  klass = load_validator(validator)
65
- self.validations += {
65
+ self.validations += [{
66
66
  :attribute => attribute,
67
67
  :validator => klass,
68
68
  :options => options,
69
69
  :conditions => conditions,
70
70
  :conditions_if => conditions_if,
71
- }
71
+ }]
72
72
  end
73
73
  else
74
74
  if attribute
75
- self.validations += {
75
+ self.validations += [{
76
76
  :method => "#{attribute}_validation",
77
77
  :conditions => conditions,
78
78
  :conditions_if => conditions_if,
79
- }
79
+ }]
80
80
  else
81
81
  raise ArgumentError, "at least a block has to be given" unless block_given?
82
- self.validations += {
82
+ self.validations += [{
83
83
  :block => block,
84
84
  :conditions => conditions,
85
85
  :conditions_if => conditions_if,
86
- }
86
+ }]
87
87
  end
88
88
  end
89
89
  end
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{sexy_validations}
8
- s.version = "0.5.3"
8
+ s.version = "0.5.4"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Corin Langosch"]
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 5
8
- - 3
9
- version: 0.5.3
8
+ - 4
9
+ version: 0.5.4
10
10
  platform: ruby
11
11
  authors:
12
12
  - Corin Langosch