motr 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/motr/forms/base.rb +1 -1
- data/lib/motr/version.rb +1 -1
- metadata +3 -3
data/lib/motr/forms/base.rb
CHANGED
@@ -56,7 +56,7 @@ module Motr
|
|
56
56
|
#
|
57
57
|
def errors_on_attribute?(method)
|
58
58
|
return false if @object.nil?
|
59
|
-
!(@object.errors.empty? || !@object.errors
|
59
|
+
!(@object.errors.empty? || !@object.errors[method.to_sym].present? || [@object.errors[method.to_sym]].flatten.empty?)
|
60
60
|
end
|
61
61
|
|
62
62
|
##
|
data/lib/motr/version.rb
CHANGED
metadata
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
name: motr
|
3
3
|
version: !ruby/object:Gem::Version
|
4
4
|
prerelease:
|
5
|
-
version: 0.1.
|
5
|
+
version: 0.1.1
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- Brent Kirby
|
@@ -10,7 +10,7 @@ autorequire:
|
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
12
|
|
13
|
-
date: 2011-
|
13
|
+
date: 2011-06-04 00:00:00 -04:00
|
14
14
|
default_executable:
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
@@ -165,7 +165,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
165
165
|
requirements:
|
166
166
|
- - ">="
|
167
167
|
- !ruby/object:Gem::Version
|
168
|
-
hash: -
|
168
|
+
hash: -3816487260385459713
|
169
169
|
segments:
|
170
170
|
- 0
|
171
171
|
version: "0"
|