way 1.1.5 → 1.2.0
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/lib/helpers.rb +5 -0
- data/lib/rails2.rb +19 -0
- data/lib/rails3.rb +18 -0
- metadata +41 -21
data/lib/helpers.rb
ADDED
data/lib/rails2.rb
ADDED
@@ -0,0 +1,19 @@
|
|
1
|
+
module ActionView
|
2
|
+
class Base
|
3
|
+
include Way
|
4
|
+
|
5
|
+
def way_render_partial options = {}
|
6
|
+
partial_content = render_partial_copy options
|
7
|
+
partial_template = _pick_partial_template(options[:partial])
|
8
|
+
|
9
|
+
if show_partial_path? self.controller
|
10
|
+
partial_content << "app/views/#{partial_template.to_s}"
|
11
|
+
end
|
12
|
+
|
13
|
+
partial_content
|
14
|
+
end
|
15
|
+
|
16
|
+
alias_method :render_partial_copy, :render_partial
|
17
|
+
alias_method :render_partial, :way_render_partial
|
18
|
+
end
|
19
|
+
end
|
data/lib/rails3.rb
ADDED
@@ -0,0 +1,18 @@
|
|
1
|
+
module ActionView
|
2
|
+
class PartialRenderer
|
3
|
+
include Way
|
4
|
+
|
5
|
+
def way_render_partial
|
6
|
+
partial_content = render_partial_copy
|
7
|
+
|
8
|
+
if show_partial_path? @view.controller
|
9
|
+
partial_content << "#{@template.inspect}"
|
10
|
+
end
|
11
|
+
|
12
|
+
partial_content
|
13
|
+
end
|
14
|
+
|
15
|
+
alias_method :render_partial_copy, :render_partial
|
16
|
+
alias_method :render_partial, :way_render_partial
|
17
|
+
end
|
18
|
+
end
|
metadata
CHANGED
@@ -1,46 +1,66 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: way
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
5
|
-
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
prerelease: false
|
5
|
+
segments:
|
6
|
+
- 1
|
7
|
+
- 2
|
8
|
+
- 0
|
9
|
+
version: 1.2.0
|
6
10
|
platform: ruby
|
7
|
-
authors:
|
11
|
+
authors:
|
8
12
|
- Caleb Cohoon
|
9
13
|
autorequire:
|
10
14
|
bindir: bin
|
11
15
|
cert_chain: []
|
12
|
-
|
16
|
+
|
17
|
+
date: 2012-05-24 00:00:00 -07:00
|
18
|
+
default_executable:
|
13
19
|
dependencies: []
|
20
|
+
|
14
21
|
description:
|
15
22
|
email: calebcohoon@gmail.com
|
16
23
|
executables: []
|
24
|
+
|
17
25
|
extensions: []
|
26
|
+
|
18
27
|
extra_rdoc_files: []
|
19
|
-
|
28
|
+
|
29
|
+
files:
|
30
|
+
- lib/helpers.rb
|
31
|
+
- lib/rails2.rb
|
32
|
+
- lib/rails3.rb
|
20
33
|
- lib/way.rb
|
21
34
|
- MIT-LICENSE
|
35
|
+
has_rdoc: true
|
22
36
|
homepage:
|
23
37
|
licenses: []
|
38
|
+
|
24
39
|
post_install_message:
|
25
40
|
rdoc_options: []
|
26
|
-
|
41
|
+
|
42
|
+
require_paths:
|
27
43
|
- lib
|
28
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
requirements:
|
37
|
-
- -
|
38
|
-
- !ruby/object:Gem::Version
|
39
|
-
|
44
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
45
|
+
requirements:
|
46
|
+
- - ">="
|
47
|
+
- !ruby/object:Gem::Version
|
48
|
+
segments:
|
49
|
+
- 0
|
50
|
+
version: "0"
|
51
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
52
|
+
requirements:
|
53
|
+
- - ">="
|
54
|
+
- !ruby/object:Gem::Version
|
55
|
+
segments:
|
56
|
+
- 0
|
57
|
+
version: "0"
|
40
58
|
requirements: []
|
59
|
+
|
41
60
|
rubyforge_project:
|
42
|
-
rubygems_version: 1.
|
61
|
+
rubygems_version: 1.3.6
|
43
62
|
signing_key:
|
44
63
|
specification_version: 3
|
45
64
|
summary: Find partials in your Rails app easily!
|
46
65
|
test_files: []
|
66
|
+
|