globalize3 0.2.0.beta7 → 0.2.0.beta8
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile.lock +1 -1
- data/README.textile +1 -1
- data/lib/globalize/active_record/translation.rb +6 -0
- data/lib/globalize3/version.rb +1 -1
- metadata +4 -4
data/Gemfile.lock
CHANGED
data/README.textile
CHANGED
@@ -2,6 +2,12 @@ module Globalize
|
|
2
2
|
module ActiveRecord
|
3
3
|
class Translation < ::ActiveRecord::Base
|
4
4
|
class << self
|
5
|
+
# Sometimes ActiveRecord queries .table_exists? before the table name
|
6
|
+
# has even been set which results in catastrophic failure.
|
7
|
+
def table_exists?
|
8
|
+
table_name.present? && super
|
9
|
+
end
|
10
|
+
|
5
11
|
def with_locales(*locales)
|
6
12
|
# Avoid using "IN" with SQL queries when only using one locale.
|
7
13
|
locales = locales.flatten.map(&:to_s)
|
data/lib/globalize3/version.rb
CHANGED
metadata
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: globalize3
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: -4090334684
|
5
5
|
prerelease: 6
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 2
|
9
9
|
- 0
|
10
10
|
- beta
|
11
|
-
-
|
12
|
-
version: 0.2.0.
|
11
|
+
- 8
|
12
|
+
version: 0.2.0.beta8
|
13
13
|
platform: ruby
|
14
14
|
authors:
|
15
15
|
- Sven Fuchs
|
@@ -22,7 +22,7 @@ autorequire:
|
|
22
22
|
bindir: bin
|
23
23
|
cert_chain: []
|
24
24
|
|
25
|
-
date: 2012-02-
|
25
|
+
date: 2012-02-02 00:00:00 Z
|
26
26
|
dependencies:
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: activerecord
|