doorkeeper_hub 0.2.3 → 0.2.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4a92b9ce77e76eac7bddd6ea5c63bb69ffbc0d40b88b905d4e9a74e57262bb6f
4
- data.tar.gz: 3c7abbc39aa7ec5dec30c2ed8be3b1f826e40c392aebe2ff56c3353339a042f5
3
+ metadata.gz: aedd952f767c1e040c03ffab995541b89f1d7bef911c840aad578387d4d741c0
4
+ data.tar.gz: 411e8e4817d33063471736070acdfa85995c5046df56eb61fcd78b90eb16db0f
5
5
  SHA512:
6
- metadata.gz: a98f407ed67af04967e5797f55f0f9439d7788f5017422c626a6d2bf1676ade3f00f1f78a355787be3caf75042823513e434ac2faa38222d1dbd73d5ed05a366
7
- data.tar.gz: d561b05c729377e55b2abaa0a7b4b7489bfe1e8e5039f589a8b8faf7be272912e1cf84eb5ee0e88f006a4f873dd87322c8cb25b0ca6f2443e1470b61f3146094
6
+ metadata.gz: 4daab54d352c7dd8c43cd2718452e78719d29d62286b28cca4d7960272392404ed1fdecda768f7768c41e17d56d72ae66e86822056777b40a75ef31cf1fb01c7
7
+ data.tar.gz: d0c2e01cdf74c88913b1c4864741decb2991b0a4d02782d39f7673f90a3cc51e0e4c837593f893f418b83c594a0c2b1853e98f119f7343b524bcaff12f768646
@@ -8,10 +8,10 @@ module DoorkeeperHub
8
8
 
9
9
  def initialize
10
10
  self.service_token = ENV["SERVICE_TOKEN"]
11
- self.user_model = Object.const_defined?(User) ? ::User : nil
11
+ self.user_model = ::User rescue nil
12
+ self.scope_model = ::Company rescue nil
12
13
  self.doorkeeper_token_name = :doorkeeper_token
13
14
  self.client_mode = false
14
- self.scope_model = Object.const_defined?(Company) ? ::Company : nil
15
15
  end
16
16
  end
17
17
  end
@@ -1,3 +1,3 @@
1
1
  module DoorkeeperHub
2
- VERSION = "0.2.3"
2
+ VERSION = "0.2.4"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: doorkeeper_hub
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.3
4
+ version: 0.2.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jimmy Fan