motorhead 0.3.3 → 0.3.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/motorhead/action_view.rb +2 -2
- data/lib/motorhead/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 088f48136762405102532a57332cc5d031535d91
|
4
|
+
data.tar.gz: ef9f515908b8faf88536f936437367819ba37da2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c7719b34a3370f960d14b6869f8a74e167774257b57aeb26ab257b39709758eb1d7f98d5ffdfed5424ca7d6ef588af24acd0f7b863f0b00a7fca912ac4c3b4fd
|
7
|
+
data.tar.gz: ac956803299c8aff94741a66098e6e037dc9815047b64ba2df299c6462b648c2cac26a7d94b6165af7fe2c0eb263f8686d4cc1fb0fe0f98017b40cba548962f4
|
@@ -3,7 +3,7 @@ ActionView::Base.class_eval do
|
|
3
3
|
def render_with_motorhead(options = {}, locals = {}, &block)
|
4
4
|
if (Hash === options) && options.key?(:engine)
|
5
5
|
ext_name = options[:engine][/[^\/]*/]
|
6
|
-
if ext_name.
|
6
|
+
if ext_name.camelize.constantize::Engine.active? controller
|
7
7
|
view_renderer.render(self, options, &block)
|
8
8
|
elsif block
|
9
9
|
capture(&block)
|
@@ -39,7 +39,7 @@ module Motorhead
|
|
39
39
|
super
|
40
40
|
rescue => e
|
41
41
|
ext_name = options[:partial][/[^\/]*/]
|
42
|
-
(ext_name.
|
42
|
+
(ext_name.camelize.constantize::Engine.on_error || Motorhead.config.on_error).call(e)
|
43
43
|
context.capture(&block)
|
44
44
|
end
|
45
45
|
end
|
data/lib/motorhead/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: motorhead
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Akira Matsuda
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-12-
|
11
|
+
date: 2015-12-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|