matthuhiggins-foreigner 0.7.0 → 0.7.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/lib/foreigner.rb +6 -4
  2. metadata +7 -7
data/lib/foreigner.rb CHANGED
@@ -38,10 +38,12 @@ Foreigner.register 'mysql2', 'foreigner/connection_adapters/mysql_adapter'
38
38
  Foreigner.register 'postgresql', 'foreigner/connection_adapters/postgresql_adapter'
39
39
 
40
40
  if defined?(Rails::Railtie)
41
- class Railtie < Rails::Railtie
42
- initializer 'foreigner.load_adapter' do
43
- ActiveSupport.on_load :active_record do
44
- Foreigner.load_adapter!
41
+ module Foreigner
42
+ class Railtie < Rails::Railtie
43
+ initializer 'foreigner.load_adapter' do
44
+ ActiveSupport.on_load :active_record do
45
+ Foreigner.load_adapter!
46
+ end
45
47
  end
46
48
  end
47
49
  end
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 7
8
- - 0
9
- version: 0.7.0
8
+ - 1
9
+ version: 0.7.1
10
10
  platform: ruby
11
11
  authors:
12
12
  - Matthew Higgins
@@ -30,13 +30,13 @@ files:
30
30
  - MIT-LICENSE
31
31
  - Rakefile
32
32
  - README.rdoc
33
- - lib/foreigner.rb
34
- - lib/foreigner/schema_dumper.rb
35
- - lib/foreigner/connection_adapters/sql_2003.rb
36
- - lib/foreigner/connection_adapters/mysql_adapter.rb
37
- - lib/foreigner/connection_adapters/postgresql_adapter.rb
38
33
  - lib/foreigner/connection_adapters/abstract/schema_definitions.rb
39
34
  - lib/foreigner/connection_adapters/abstract/schema_statements.rb
35
+ - lib/foreigner/connection_adapters/mysql_adapter.rb
36
+ - lib/foreigner/connection_adapters/postgresql_adapter.rb
37
+ - lib/foreigner/connection_adapters/sql_2003.rb
38
+ - lib/foreigner/schema_dumper.rb
39
+ - lib/foreigner.rb
40
40
  - test/helper.rb
41
41
  - test/mysql_adapter_test.rb
42
42
  has_rdoc: true