api-blocks 0.4.1 → 0.4.2
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.
- checksums.yaml +4 -4
- data/lib/api_blocks/railtie.rb +0 -34
- data/lib/api_blocks/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 8234f3255752ba4fcf458c4f2c4db40bb30f44e954d4e52f6b73f8f6177febf6
|
|
4
|
+
data.tar.gz: 47cefbcbb7ef44b7ea8759e965f3dae7dae2b60738a125c746c0bb8a51e474f4
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: c9c51728f642fca5c4d7bcc96528a3ce35cfce6c813fb21b27a31cc9d2dfc233f52099fe968c45b3f6d7b647f556a4ae27b6329ade077c6d97b4025b98a05e80
|
|
7
|
+
data.tar.gz: 4615a045ca9f03406f8c53a306cced6a84d04d83ada1426270dc758a174c807212321c68a2cf5664148fa9888dc159e4e742284a3d46add59959e1005188d3f9
|
data/lib/api_blocks/railtie.rb
CHANGED
|
@@ -7,40 +7,6 @@ require "problem_details-rails"
|
|
|
7
7
|
# @private
|
|
8
8
|
#
|
|
9
9
|
class ApiBlocks::Railtie < Rails::Railtie
|
|
10
|
-
initializer 'api_blocks.doorkeeper' do
|
|
11
|
-
next unless defined?(Doorkeeper)
|
|
12
|
-
|
|
13
|
-
Doorkeeper::Orm::ActiveRecord.initialize_models!
|
|
14
|
-
|
|
15
|
-
ActiveSupport.on_load(:active_record) do
|
|
16
|
-
# do not load the Doorkeeper::Application extensions if migrations have
|
|
17
|
-
# not been setup.
|
|
18
|
-
has_reset_password_uri = Doorkeeper::Application.columns.find do |col|
|
|
19
|
-
col.name == 'reset_password_uri'
|
|
20
|
-
end
|
|
21
|
-
|
|
22
|
-
next unless has_reset_password_uri
|
|
23
|
-
|
|
24
|
-
Doorkeeper::Application.include(
|
|
25
|
-
ApiBlocks::Doorkeeper::Passwords::Application
|
|
26
|
-
)
|
|
27
|
-
end
|
|
28
|
-
|
|
29
|
-
ActiveSupport.on_load(:active_record) do
|
|
30
|
-
# do not load the Doorkeeper::Application extensions if migrations have
|
|
31
|
-
# not been setup.
|
|
32
|
-
invitation_uri = Doorkeeper::Application.columns.find do |col|
|
|
33
|
-
col.name == 'invitation_uri'
|
|
34
|
-
end
|
|
35
|
-
|
|
36
|
-
next unless invitation_uri
|
|
37
|
-
|
|
38
|
-
Doorkeeper::Application.include(
|
|
39
|
-
ApiBlocks::Doorkeeper::Invitations::Application
|
|
40
|
-
)
|
|
41
|
-
end
|
|
42
|
-
end
|
|
43
|
-
|
|
44
10
|
generators do
|
|
45
11
|
require_relative 'doorkeeper/passwords/migration_generator'
|
|
46
12
|
require_relative 'doorkeeper/invitations/migration_generator'
|
data/lib/api_blocks/version.rb
CHANGED