rhino_project_organizations 0.20.0.beta.84 → 0.20.0.beta.85
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/rhino_organizations/engine.rb +10 -7
- data/lib/rhino_organizations/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 67fc7f42cf66710506192f78b0e01cc0f2404e544217f3965ab2c69e42b2e7a4
|
4
|
+
data.tar.gz: fb036549a9424747b7658466aa1ec48b419122da0de0f29b7a2b029825f0c362
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d7b5eceb4a08bb83ef39c810a69539ca2c60672c3f5ab514c191f74bf09c19d4f26e6e6010724400dd97df9346b4e5fa219bc7ca8eb665406baae8d2e4e444db
|
7
|
+
data.tar.gz: 4bcf4ecaa6d67f3c4075aced88882c1fad2c0df0ec7cc16f2bc9ade94585f5d0a9de2622f2fa30fcfd9f6ba12e756c7c670b4b5de25795699fc7797775eb96d5
|
@@ -1,15 +1,18 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
require
|
4
|
-
require
|
3
|
+
require "rhino/engine"
|
4
|
+
require "rhino_organizations/version"
|
5
|
+
|
6
|
+
# https://guides.rubyonrails.org/engines.html#other-gem-dependencies
|
7
|
+
require "devise_invitable"
|
5
8
|
|
6
9
|
module RhinoOrganizations
|
7
10
|
class Engine < ::Rails::Engine
|
8
|
-
config.autoload_paths << File.expand_path(
|
11
|
+
config.autoload_paths << File.expand_path("../../lib", __dir__)
|
9
12
|
|
10
|
-
initializer
|
13
|
+
initializer "rhino_organizations.register_module" do
|
11
14
|
config.after_initialize do
|
12
|
-
if Rhino.resources.include?(
|
15
|
+
if Rhino.resources.include?("Organization")
|
13
16
|
Rhino.registered_modules[:rhino_organizations] = {
|
14
17
|
version: RhinoOrganizations::VERSION::STRING
|
15
18
|
}
|
@@ -19,13 +22,13 @@ module RhinoOrganizations
|
|
19
22
|
|
20
23
|
# https://guides.rubyonrails.org/engines.html#overriding-models-and-controllers
|
21
24
|
# Use root instead of Rails.root to scope for this engine
|
22
|
-
initializer
|
25
|
+
initializer "rhino_organizations.overrides" do
|
23
26
|
overrides = "#{root}/app/overrides"
|
24
27
|
Rails.autoloaders.main.ignore(overrides)
|
25
28
|
|
26
29
|
config.to_prepare do
|
27
30
|
# FIXME: Only necessary because this module is in tree NUB-682
|
28
|
-
if Rhino.resources.include?(
|
31
|
+
if Rhino.resources.include?("Organization")
|
29
32
|
Dir.glob("#{overrides}/**/*_override.rb").each do |override|
|
30
33
|
load override
|
31
34
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rhino_project_organizations
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.20.0.beta.
|
4
|
+
version: 0.20.0.beta.85
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- JP Rosevear
|
@@ -36,14 +36,14 @@ dependencies:
|
|
36
36
|
requirements:
|
37
37
|
- - '='
|
38
38
|
- !ruby/object:Gem::Version
|
39
|
-
version: 0.20.0.beta.
|
39
|
+
version: 0.20.0.beta.85
|
40
40
|
type: :runtime
|
41
41
|
prerelease: false
|
42
42
|
version_requirements: !ruby/object:Gem::Requirement
|
43
43
|
requirements:
|
44
44
|
- - '='
|
45
45
|
- !ruby/object:Gem::Version
|
46
|
-
version: 0.20.0.beta.
|
46
|
+
version: 0.20.0.beta.85
|
47
47
|
- !ruby/object:Gem::Dependency
|
48
48
|
name: devise_invitable
|
49
49
|
requirement: !ruby/object:Gem::Requirement
|