globalize3 0.2.0.beta7 → 0.2.0.beta8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- globalize3 (0.2.0.beta6)
4
+ globalize3 (0.2.0.beta7)
5
5
  activemodel (>= 3.0.0)
6
6
  activerecord (>= 3.0.0)
7
7
  paper_trail (~> 2)
@@ -6,7 +6,7 @@ Globalize3 is much more lightweight and compatible than its predecessor Globaliz
6
6
 
7
7
  h2. Requirements
8
8
 
9
- ActiveRecord > 3.0.0.rc
9
+ ActiveRecord > 3.0.0
10
10
  I18n
11
11
 
12
12
  h2. Installation
@@ -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)
@@ -1,3 +1,3 @@
1
1
  module Globalize3
2
- VERSION = '0.2.0.beta7'
2
+ VERSION = '0.2.0.beta8'
3
3
  end
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: 2257864407
4
+ hash: -4090334684
5
5
  prerelease: 6
6
6
  segments:
7
7
  - 0
8
8
  - 2
9
9
  - 0
10
10
  - beta
11
- - 7
12
- version: 0.2.0.beta7
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-01 00:00:00 Z
25
+ date: 2012-02-02 00:00:00 Z
26
26
  dependencies:
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: activerecord