easy_partials 0.3.3 → 0.3.4

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.3.3
1
+ 0.3.4
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{easy_partials}
8
- s.version = "0.3.3"
8
+ s.version = "0.3.4"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Samer Abukhait"]
12
- s.date = %q{2010-08-24}
12
+ s.date = %q{2011-02-27}
13
13
  s.description = %q{An easier way to call partials}
14
14
  s.email = %q{abukhait@gmail.com}
15
15
  s.extra_rdoc_files = [
@@ -2,18 +2,18 @@ module EasyPartials
2
2
 
3
3
  module HelperAdditions
4
4
 
5
- def respond_to?(method_name, inc_priv = false)
6
- return true if method_name =~ METHOD_REGEXP
7
- super
8
- end
9
-
10
5
  def method_missing(method_name, *args, &block)
11
6
  method_str = method_name.to_s
12
7
  return super unless method_str.sub! METHOD_REGEXP, ''
13
8
  locations = [method_str]
14
9
  locations.push *additional_partials(method_str)
15
- new_method = partial_method locations, *args, &block
16
- meta_def_with_block method_name, &new_method
10
+
11
+ begin
12
+ new_method = partial_method locations, *args, &block
13
+ meta_def_with_block method_name, &new_method
14
+ rescue ActionView::MissingTemplate
15
+ super
16
+ end
17
17
  end
18
18
 
19
19
  def additional_partials(partial_name)
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: easy_partials
3
3
  version: !ruby/object:Gem::Version
4
- hash: 21
4
+ hash: 27
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 3
9
- - 3
10
- version: 0.3.3
9
+ - 4
10
+ version: 0.3.4
11
11
  platform: ruby
12
12
  authors:
13
13
  - Samer Abukhait
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2010-08-24 00:00:00 -07:00
18
+ date: 2011-02-27 00:00:00 -08:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency