active_record_shards 3.3.2 → 3.3.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/active_record_shards.rb +1 -1
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5523197a8500c9479196fe307498dd2f8ccfbef2
4
- data.tar.gz: 5d70fe07412aa283dee579008f34174fbbf7e582
3
+ metadata.gz: e366fb2641df4dbf79bf6dc6a586dab121426eb7
4
+ data.tar.gz: 9f9a8a1c0f15c4796b9c7b41ca7286f84d8d0966
5
5
  SHA512:
6
- metadata.gz: 4d679078d284eec8e16e670c7425e0291319f8a608e84b8a93b3e0cecfd0db984bdce655092121fafaabf67c1d720d8ef99c4ae1205eaf7efc056c161b802855
7
- data.tar.gz: 30070b0b63f03a7f4500a5368f33de1ef5a22335539b11dbf5c5d7a00e1896811cbe78793b1df9466ff9580fd5dab9eb253bac5d796cab6f7ed73a5d896f2a51
6
+ metadata.gz: f8e914d91a0ecd064a64f11458b9577789577e74eaafe0f1672fb88a763e84bc01553fbe87423caaf30d9512d90d91e10fda1d731c47b304257b4e0904d920c2
7
+ data.tar.gz: 4e3e5201d46a32ba780329f8f170dafcdc0da5e493a03b0e2781afc0519ce5dba0a1eaeb289929a1499dd3a6632ac4443cd5e57f88d12e1ff664d2535c374304
@@ -48,7 +48,7 @@ end
48
48
 
49
49
  module ActiveRecordShards
50
50
  def self.rails_env
51
- env = Rails.env if Object.const_defined?(:Rails)
51
+ env = Rails.env if defined?(Rails.env)
52
52
  env ||= RAILS_ENV if Object.const_defined?(:RAILS_ENV)
53
53
  env ||= ENV['RAILS_ENV']
54
54
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: active_record_shards
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.3.2
4
+ version: 3.3.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mick Staugaard
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2015-01-21 00:00:00.000000000 Z
13
+ date: 2015-01-23 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: activerecord