theme_support 3.0.6 → 3.0.7

Sign up to get free protection for your applications and to get access to all the features.
data/README CHANGED
@@ -149,6 +149,8 @@ The theme_support plugin includes patches from the following:
149
149
  Thanks guys!
150
150
 
151
151
  == Changelog
152
+ 3.0.7 - Doesn't work for render_to_string because the hack is too high in the stack, render use render_to_string. Fixed
153
+
152
154
  3.0.6 - We didn't need to preload cache (rake themes:cache:update) in development
153
155
 
154
156
  3.0.5 - html_safe on helpers, Theme model and controller become Themesupport model and controller
data/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.6
1
+ 3.0.7
@@ -34,16 +34,31 @@ end
34
34
 
35
35
  module AbstractController
36
36
  module Rendering
37
- alias_method :theme_support_render, :render
38
37
 
39
- def render(*args, &block)
38
+ #Too high in the stack
39
+
40
+ # alias_method :theme_support_render, :render
41
+
42
+ # def render(*args, &block)
43
+ # theme = current_theme
44
+ # if theme
45
+ # theme = ActionView::Base.process_view_paths(File.join("themes", theme, "views"))
46
+ # prepend_view_path(theme)
47
+ # end
48
+ #
49
+ # theme_support_render(*args, &block)
50
+ # end
51
+
52
+ alias_method :theme_support_render_to_string, :render_to_string
53
+
54
+ def render_to_string(*args, &block)
40
55
  theme = current_theme
41
56
  if theme
42
57
  theme = ActionView::Base.process_view_paths(File.join("themes", theme, "views"))
43
58
  prepend_view_path(theme)
44
59
  end
45
60
 
46
- theme_support_render(*args, &block)
61
+ theme_support_render_to_string(*args, &block)
47
62
  end
48
63
 
49
64
  end
@@ -5,7 +5,7 @@ spec = Gem::Specification.new do |s|
5
5
  s.name = 'theme_support'
6
6
  s.author = 'Pierre Yager and Sylvain Claudel'
7
7
  s.email = "pierre@levosgien.net"
8
- s.version = ("$Release: 3.0.6" =~ /[\.\d]+/) && $&
8
+ s.version = ("$Release: 3.0.7" =~ /[\.\d]+/) && $&
9
9
  s.platform = Gem::Platform::RUBY
10
10
  s.homepage = 'http://github.com/zedalaye/theme_support'
11
11
  s.rubyforge_project = 'theme-support'
metadata CHANGED
@@ -1,13 +1,12 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: theme_support
3
3
  version: !ruby/object:Gem::Version
4
- hash: 11
5
4
  prerelease: false
6
5
  segments:
7
6
  - 3
8
7
  - 0
9
- - 6
10
- version: 3.0.6
8
+ - 7
9
+ version: 3.0.7
11
10
  platform: ruby
12
11
  authors:
13
12
  - Pierre Yager and Sylvain Claudel
@@ -15,7 +14,7 @@ autorequire:
15
14
  bindir: bin
16
15
  cert_chain: []
17
16
 
18
- date: 2010-09-16 00:00:00 +02:00
17
+ date: 2010-09-21 00:00:00 +02:00
19
18
  default_executable:
20
19
  dependencies: []
21
20
 
@@ -68,7 +67,6 @@ required_ruby_version: !ruby/object:Gem::Requirement
68
67
  requirements:
69
68
  - - ">="
70
69
  - !ruby/object:Gem::Version
71
- hash: 3
72
70
  segments:
73
71
  - 0
74
72
  version: "0"
@@ -77,7 +75,6 @@ required_rubygems_version: !ruby/object:Gem::Requirement
77
75
  requirements:
78
76
  - - ">="
79
77
  - !ruby/object:Gem::Version
80
- hash: 3
81
78
  segments:
82
79
  - 0
83
80
  version: "0"