trailblazer-rails 1.0.5 → 1.0.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/CHANGES.md +8 -0
- data/lib/trailblazer/rails/railtie.rb +5 -2
- data/lib/trailblazer/rails/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 393faf43c954e298c7148d17de28c41f402a86d3f5c8925286cd52f05bcc96df
|
4
|
+
data.tar.gz: 9d16e34343eb36e06c9f08bf60896bb0f2cec1863221ab1f6ae9c78e9e5d091b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 07b320f4ba9ddf7154cee7409c0d88eb36a3cf8e941157ea28d3f7a65a43ec96ed6f55eec1ff8e29e8cf769f54c695ce606d778bb6c07f97036932a9399f9e77
|
7
|
+
data.tar.gz: f1ae864314b805c9fa14d10fe5c3f02b8721e1b779229d2c520c373014cb926675d4e99595205298b87042f0de077a91fae7ab05766e240d19ae2d61951eb6ca
|
data/CHANGES.md
CHANGED
@@ -6,6 +6,7 @@ module Trailblazer
|
|
6
6
|
config.trailblazer = ActiveSupport::OrderedOptions.new
|
7
7
|
## Accept also an Array of controllers
|
8
8
|
config.trailblazer.application_controller ||= 'ActionController::Base'
|
9
|
+
config.trailblazer.use_loader ||= true
|
9
10
|
|
10
11
|
def self.load_concepts(app)
|
11
12
|
# Loader.new.(insert: [ModelFile, before: Loader::AddConceptFiles]) { |file| require_dependency("#{app.root}/#{file}") }
|
@@ -34,8 +35,10 @@ module Trailblazer
|
|
34
35
|
initializer 'trailblazer.install', after: "reform.form_extensions" do |app|
|
35
36
|
# the trb autoloading has to be run after initializers have been loaded, so we can tweak inclusion of features in
|
36
37
|
# initializers.
|
37
|
-
|
38
|
-
|
38
|
+
if config.trailblazer.use_loader
|
39
|
+
reloader_class.to_prepare do
|
40
|
+
Trailblazer::Railtie.load_concepts(app)
|
41
|
+
end
|
39
42
|
end
|
40
43
|
end
|
41
44
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: trailblazer-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Nick Sutterer
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-04-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: trailblazer
|
@@ -192,7 +192,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
192
192
|
version: '0'
|
193
193
|
requirements: []
|
194
194
|
rubyforge_project:
|
195
|
-
rubygems_version: 2.
|
195
|
+
rubygems_version: 2.7.3
|
196
196
|
signing_key:
|
197
197
|
specification_version: 4
|
198
198
|
summary: Convenient Rails support for Trailblazer.
|