theme_support 3.0.2 → 3.0.3

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.3 - Hack which uses layout theme but crashes if it doesn't exist ! Now it loads the default layout
153
+
152
154
  3.0.2 - Don't load a nil theme
153
155
 
154
156
  3.0.1 - layout :mymethod works again
data/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.2
1
+ 3.0.3
@@ -32,19 +32,21 @@ class AbstractController::Base
32
32
  end
33
33
  end
34
34
 
35
- AbstractController::Layouts.module_eval do
36
- def _normalize_options(options)
37
- super
38
-
39
- if _include_layout?(options)
40
- layout = options.key?(:layout) ? options.delete(:layout) : :default
41
- value = _layout_for_option(layout)
42
- options[:layout] = (value =~ /\blayouts/ ? value : "layouts/#{value}") if value
43
- end
44
-
45
- if current_theme
46
- theme_path = File.join(Rails.root, "themes", current_theme, "views")
47
- options[:layout] = File.join(theme_path, options[:layout])
48
- end
49
- end
50
- end
35
+ # Hack which uses layout theme but crashes if it doesn't exist !
36
+ # Now it loads the default layout
37
+ #AbstractController::Layouts.module_eval do
38
+ # def _normalize_options(options)
39
+ # super
40
+ #
41
+ # if _include_layout?(options)
42
+ # layout = options.key?(:layout) ? options.delete(:layout) : :default
43
+ # value = _layout_for_option(layout)
44
+ # options[:layout] = (value =~ /\blayouts/ ? value : "layouts/#{value}") if value
45
+ # end
46
+ #
47
+ # if current_theme
48
+ # theme_path = File.join(Rails.root, "themes", current_theme, "views")
49
+ # options[:layout] = File.join(theme_path, options[:layout])
50
+ # end
51
+ # end
52
+ #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.2" =~ /[\.\d]+/) && $&
8
+ s.version = ("$Release: 3.0.3" =~ /[\.\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,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: theme_support
3
3
  version: !ruby/object:Gem::Version
4
- hash: 3
4
+ hash: 1
5
5
  prerelease: false
6
6
  segments:
7
7
  - 3
8
8
  - 0
9
- - 2
10
- version: 3.0.2
9
+ - 3
10
+ version: 3.0.3
11
11
  platform: ruby
12
12
  authors:
13
13
  - Pierre Yager and Sylvain Claudel