brtraducao 2.0.11 → 2.0.12
Sign up to get free protection for your applications and to get access to all the features.
@@ -15,10 +15,10 @@ module ActionView::Helpers::ActiveRecordHelper
|
|
15
15
|
html[key] = 'errorExplanation'
|
16
16
|
end
|
17
17
|
end
|
18
|
-
header_message
|
18
|
+
options[:header_message] ||= "#{pluralize(count, 'erro')} para #{(options[:object_name] || params.first).to_s.gsub('_', ' ')}"
|
19
19
|
error_messages = objects.map { |object| object.errors.full_messages.map {|msg| content_tag(:li, msg) } }
|
20
20
|
content_tag(:div,
|
21
|
-
content_tag(options[:header_tag] || :h2, header_message) <<
|
21
|
+
content_tag(options[:header_tag] || :h2, options[:header_message]) <<
|
22
22
|
content_tag(:p, 'Foram detectados os seguintes erros:') <<
|
23
23
|
content_tag(:ul, error_messages),
|
24
24
|
html
|
@@ -27,4 +27,4 @@ module ActionView::Helpers::ActiveRecordHelper
|
|
27
27
|
''
|
28
28
|
end
|
29
29
|
end
|
30
|
-
end
|
30
|
+
end
|
data/lib/brtraducao/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: brtraducao
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.
|
4
|
+
version: 2.0.12
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- "Marcos Tapaj\xC3\xB3s"
|
@@ -12,7 +12,7 @@ autorequire:
|
|
12
12
|
bindir: bin
|
13
13
|
cert_chain: []
|
14
14
|
|
15
|
-
date: 2008-
|
15
|
+
date: 2008-12-01 00:00:00 -02:00
|
16
16
|
default_executable:
|
17
17
|
dependencies:
|
18
18
|
- !ruby/object:Gem::Dependency
|