rails-decorators 0.1.0 → 0.1.1
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
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9abcc516c64a62c5839b64e18d1821eb3b74e933
|
4
|
+
data.tar.gz: de637f8a73faf8b95f821b0d83e1b5a2ef4ff0f0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 314500d8ddf9901d838c5b1f88544e7a9cbcd841ee5312eeee1c0ac4f98a7e4b85060ae936bc95782c4fb7c347a64932696e48410737c8b7dac51da35e5a12da
|
7
|
+
data.tar.gz: 83b8f2c34b998b76565377ecbf719b7a315750fdcda4bdcb4989b3398d59ce68c636642ebf5b1af794a7497ddf00caeac572e6147241081e2d369bb59837af57
|
@@ -4,11 +4,7 @@ module Rails
|
|
4
4
|
isolate_namespace Rails::Decorators
|
5
5
|
|
6
6
|
config.before_initialize do |app|
|
7
|
-
engines =
|
8
|
-
.each_object(Class)
|
9
|
-
.select { |klass| klass < ::Rails::Engine }
|
10
|
-
.select { |klass| klass.name.present? }
|
11
|
-
.select { |klass| klass != ::Rails::Application }
|
7
|
+
engines = Rails::Engine.subclasses
|
12
8
|
|
13
9
|
loader = Decorator.loader(engines.map(&:root) + [Rails.root])
|
14
10
|
app.config.to_prepare(&loader)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rails-decorators
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ben Crouse
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-04-
|
11
|
+
date: 2017-04-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -48,6 +48,8 @@ files:
|
|
48
48
|
- MIT-LICENSE
|
49
49
|
- README.md
|
50
50
|
- Rakefile
|
51
|
+
- app/models/rails/decorators/test_decorator.decorator
|
52
|
+
- app/models/rails/decorators/test_model.rb
|
51
53
|
- lib/rails/decorators.rb
|
52
54
|
- lib/rails/decorators/active_support.rb
|
53
55
|
- lib/rails/decorators/application.rb
|