modular_engine 0.9.2 → 0.9.3

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 31360e921374adcc24a9bd522f1672613dec6dfe
4
- data.tar.gz: a76e67b95c8e84ea70f5a8375cbf377b3556b13a
3
+ metadata.gz: 954d0a420a44ce5938e019b2b01baa07f61c58dd
4
+ data.tar.gz: 2c6b0a7fe783faa248c9c93734ed9338ecf4288b
5
5
  SHA512:
6
- metadata.gz: c6eed65e94a84d584ee27ec14410bc29e3ea7ea367245c6fd8e9a1f909969659ec1bdc6bb9ae2764e886479cf9c44d70bcf16554c81c27f75f783deaac2410c7
7
- data.tar.gz: d57222ce47a8cbc165579e98ae9bd70fb0386a9a4d960e05cd8424b3988bc9c81bfdce682b9cee158f7e83c72d832cb97c827587f797c23404d1e8d1ab06696c
6
+ metadata.gz: 4d966df0ed1f6fe6332211a68f058797acad421e2e3a5c26d525b347a0ff8ec5c3e7e674540562a65bf14779a1560beb28ba2425a5cd1989e27da12004a5d631
7
+ data.tar.gz: 0f994e484d71b4144bd41e2a2f92c915df7008e5f99b8a32303c60954ac0d39356c2978bb9310e27d2ebc5abe2fdaac2a3b2e628b3a522449766d9ca0b7be974
@@ -220,7 +220,6 @@ module Modular
220
220
  end
221
221
 
222
222
  def engine_loader
223
- p options[:namespace].camelize.gsub('::', '/') + "/#{modules.join('_').downcase}"
224
223
  @engine_loader ||= modules.join('_').downcase
225
224
  end
226
225
 
@@ -1,6 +1,25 @@
1
1
  <%= wrap_in_modules <<-rb.strip_heredoc
2
2
  class Engine < ::Rails::Engine
3
3
  #{' isolate_namespace ' + camelized_modules}
4
+ #{' paths["app/views"] << "app/views/' + namespaced_name + '"' }
5
+ paths["app/views"] << "app/views/samurai/contact"
6
+
7
+ initializer :append_migrations do |app|
8
+ unless app.root.to_s.match(root.to_s)
9
+ config.paths["db/migrate"].expanded.each do |p|
10
+ app.config.paths["db/migrate"] << p
11
+ end
12
+ end
13
+ end
14
+
15
+ config.to_prepare do
16
+ Dir.glob(Engine.root.join("app", "decorators", "**", "*_decorator*.rb")) do |c|
17
+ Rails.configuration.cache_classes ? require(c) : load(c)
18
+ end
19
+ end
20
+
4
21
  end
5
22
  rb
6
23
  %>
24
+
25
+
@@ -1,3 +1,3 @@
1
1
  module ModularEngine
2
- VERSION = "0.9.2"
2
+ VERSION = "0.9.3"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: modular_engine
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.2
4
+ version: 0.9.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Thibault