brendan-entrails 1.0.6 → 1.0.7
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.
data/entrails.gemspec
CHANGED
@@ -1,12 +1,12 @@
|
|
1
1
|
Gem::Specification.new do |s|
|
2
2
|
s.name = %q{entrails}
|
3
|
-
s.version = "1.0.
|
3
|
+
s.version = "1.0.7"
|
4
4
|
|
5
5
|
s.specification_version = 2 if s.respond_to? :specification_version=
|
6
6
|
|
7
7
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
8
8
|
s.authors = ["Brendan Baldwin"]
|
9
|
-
s.date = "2009-
|
9
|
+
s.date = "2009-02-05"
|
10
10
|
s.default_executable = %q{entrails}
|
11
11
|
s.description = "This is a collection of extensions to Rails internals that I've found to be absolutely indispensible since I implimented them. The real action is happening in the following two files at the moment: http://github.com/brendan/entrails/tree/master/lib/entrails/active_record/better_conditions.rb http://github.com/brendan/entrails/tree/master/lib/entrails/active_record/find_by_association.rb"
|
12
12
|
s.email = ["brendan@usergenic.com"]
|
@@ -36,11 +36,14 @@ module Entrails::ActionController::TemplateForReferer
|
|
36
36
|
|
37
37
|
private
|
38
38
|
|
39
|
-
def default_template_name_with_template_for_referer
|
40
|
-
template_name = default_template_name_without_template_for_referer
|
39
|
+
def default_template_name_with_template_for_referer(*args)
|
40
|
+
template_name = default_template_name_without_template_for_referer(*args)
|
41
41
|
template_name_for_referer = "#{template_name}_for_#{referer_named_route}"
|
42
|
-
|
43
|
-
|
42
|
+
begin
|
43
|
+
view_paths.find_template(template_name_for_referer, default_template_format)
|
44
|
+
rescue ActionView::MissingTemplate
|
45
|
+
template_name
|
46
|
+
end
|
44
47
|
end
|
45
48
|
|
46
49
|
def referer_host
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: brendan-entrails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Brendan Baldwin
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2009-
|
12
|
+
date: 2009-02-05 00:00:00 -08:00
|
13
13
|
default_executable: entrails
|
14
14
|
dependencies: []
|
15
15
|
|