russian 0.2.3 → 0.2.4
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG +6 -0
- data/Rakefile +1 -1
- data/lib/russian.rb +1 -1
- data/lib/russian/active_record_ext/custom_error_message.rb +1 -6
- metadata +2 -2
data/CHANGELOG
CHANGED
data/Rakefile
CHANGED
data/lib/russian.rb
CHANGED
@@ -1,9 +1,6 @@
|
|
1
1
|
# -*- encoding: utf-8 -*-
|
2
2
|
|
3
|
-
|
4
|
-
ma, mi, ti = ActiveRecord::VERSION::MAJOR, ActiveRecord::VERSION::MINOR, ActiveRecord::VERSION::TINY
|
5
|
-
|
6
|
-
if (ma >= 2 && mi >= 3 && ti >= 4)
|
3
|
+
if defined?(ActiveRecord::Error)
|
7
4
|
module ActiveRecord
|
8
5
|
class Error
|
9
6
|
protected
|
@@ -97,8 +94,6 @@ else
|
|
97
94
|
full_messages << msg
|
98
95
|
elsif msg =~ /^\^/
|
99
96
|
full_messages << msg[1..-1]
|
100
|
-
elsif msg.kind_of? ActiveRecord::Error
|
101
|
-
full_messages << msg.full_message
|
102
97
|
else
|
103
98
|
full_messages << @base.class.human_attribute_name(attr) + " " + msg
|
104
99
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: russian
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Yaroslav Markin
|
@@ -9,7 +9,7 @@ autorequire: russian
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2009-11-
|
12
|
+
date: 2009-11-12 00:00:00 +03:00
|
13
13
|
default_executable:
|
14
14
|
dependencies: []
|
15
15
|
|