rabl 0.6.7 → 0.6.8
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG.md +4 -0
- data/lib/rabl/partials.rb +2 -2
- data/lib/rabl/version.rb +1 -1
- metadata +1 -1
data/CHANGELOG.md
CHANGED
data/lib/rabl/partials.rb
CHANGED
@@ -62,9 +62,9 @@ module Rabl
|
|
62
62
|
source_format = request_format if defined?(request_format)
|
63
63
|
if source_format && context_scope.respond_to?(:lookup_context) # Rails 3
|
64
64
|
lookup_proc = lambda { |partial|
|
65
|
-
if
|
65
|
+
if ActionPack::VERSION::MAJOR == 3 && ActionPack::VERSION::MINOR < 2
|
66
66
|
context_scope.lookup_context.find(file, [], partial)
|
67
|
-
else
|
67
|
+
else # Rails 3.2 and higher
|
68
68
|
context_scope.lookup_context.find(file, [], partial, [], {:formats => [:json]})
|
69
69
|
end }
|
70
70
|
template = lookup_proc.call(false) rescue lookup_proc.call(true)
|
data/lib/rabl/version.rb
CHANGED