doorkeeper_hub 0.2.7 → 0.2.8

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
- SHA1:
3
- metadata.gz: c0dd30c40dac5b61e23001a9f927e0c4f39b4fbf
4
- data.tar.gz: 95f649330d8ceba5f7a85e813f04f84de0394f94
2
+ SHA256:
3
+ metadata.gz: 52694e3304d4ffc56acf298ac514eef0b4141c10aa44e910d878999bf7001d62
4
+ data.tar.gz: 5e07b7b9a3124a9f31704a1e2eac455269443903406aeee527a81ce7bd0324af
5
5
  SHA512:
6
- metadata.gz: 0c7f4f909dccd7ceca35b349828fc0573c716e16eb1f9b215c77c926b568c4f37b6bcb1ec835f8ad59865d58e2da96c5b78cbc57262264e6eddd86e236206a5c
7
- data.tar.gz: b6d1424fd202aa347b57df3a1dd501b444a63b6beaa38ab9d9820cd93936ab05af7ddc744608ffeaa0b398a5e97f809a293845fc747c7d899d99b2098a623a8f
6
+ metadata.gz: b95f79c789d203678d8c42fe9f319549535f2b0bfbf8adb99a184f5007b43dddacf4812aa3d9965a7b8ff00c4269a2d0fda0c3721686c04a35e3e0c4a8a56bc4
7
+ data.tar.gz: 8f675bc242f6519df6f8b47d51f2fbea2262e407118c336f23c8d4444b7810acdcef34fbe16b07ebf06ffb358ac9221987a9c6c83cc87a685a44eafbe93f5bc7
@@ -3,7 +3,7 @@ module DoorkeeperHub
3
3
  def activation
4
4
  return if params[:access_token] != DoorkeeperHub.config.service_token
5
5
  # {name, access_token, doorkeeper_token, active, options}
6
- record = DoorkeeperHub.config.scope_model.find_or_initialize_by(
6
+ record = DoorkeeperHub.config.scope_model.constantize.find_or_initialize_by(
7
7
  DoorkeeperHub.token_name => params[DoorkeeperHub.token_name]
8
8
  )
9
9
  record.update active: params[:active], name: params[:name]
@@ -1,3 +1,3 @@
1
1
  module DoorkeeperHub
2
- VERSION = "0.2.7"
2
+ VERSION = "0.2.8"
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.7
4
+ version: 0.2.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jimmy Fan
@@ -112,7 +112,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
112
112
  version: '0'
113
113
  requirements: []
114
114
  rubyforge_project:
115
- rubygems_version: 2.5.2
115
+ rubygems_version: 2.7.3
116
116
  signing_key:
117
117
  specification_version: 4
118
118
  summary: SSO Gem from DevHub.