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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6f82bff9a0ff48f4ea25a496c447d85117181347
4
- data.tar.gz: dc30244ad316a376ba0767dd570ef5b304903f3b
3
+ metadata.gz: 088f48136762405102532a57332cc5d031535d91
4
+ data.tar.gz: ef9f515908b8faf88536f936437367819ba37da2
5
5
  SHA512:
6
- metadata.gz: 3c38b04da90e39a6ec7d5b8edd367fa34fb07db41e5c20bc27901f6ad6e76b9ea27ba2778136bde12164f44b777931d72d86593d5fbf7e57c36a6117daa52fbd
7
- data.tar.gz: 089b001497ca0737dd9f1baea5eed5697d19addc050925f779dcdb925690f10e5213e6a1fcee6846a0900425547e332e392b288298191f7564386d4b6e013857
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.classify.constantize::Engine.active? controller
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.classify.constantize::Engine.on_error || Motorhead.config.on_error).call(e)
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
@@ -1,3 +1,3 @@
1
1
  module Motorhead
2
- VERSION = '0.3.3'.freeze
2
+ VERSION = '0.3.4'.freeze
3
3
  end
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.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-16 00:00:00.000000000 Z
11
+ date: 2015-12-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler