theme_support 3.0.1 → 3.0.2
Sign up to get free protection for your applications and to get access to all the features.
- data/README +2 -0
- data/VERSION +1 -1
- data/lib/theme_support/patches/actioncontroller_ex.rb +4 -2
- data/theme_support.gemspec +1 -1
- metadata +3 -3
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.2 - Don't load a nil theme
|
153
|
+
|
152
154
|
3.0.1 - layout :mymethod works again
|
153
155
|
|
154
156
|
3.0.0 - Converted theme_support plugin into a Rails 3.0 compatible gem.
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.2
|
@@ -6,8 +6,10 @@ module ActionController
|
|
6
6
|
|
7
7
|
def default_render
|
8
8
|
theme = current_theme
|
9
|
-
|
10
|
-
|
9
|
+
if theme
|
10
|
+
theme = ActionView::Base.process_view_paths(File.join("themes", theme, "views"))
|
11
|
+
prepend_view_path(theme)
|
12
|
+
end
|
11
13
|
theme_support_default_render
|
12
14
|
end
|
13
15
|
end
|
data/theme_support.gemspec
CHANGED
@@ -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.
|
8
|
+
s.version = ("$Release: 3.0.2" =~ /[\.\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:
|
4
|
+
hash: 3
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 3
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 3.0.
|
9
|
+
- 2
|
10
|
+
version: 3.0.2
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Pierre Yager and Sylvain Claudel
|