Created
August 9, 2011 14:36
-
-
Save jmbejar/1134210 to your computer and use it in GitHub Desktop.
render_liquid! updated
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/lib/liquid_renderable.rb b/lib/liquid_renderable.rb | |
index 0f66188..117e765 100644 | |
--- a/lib/liquid_renderable.rb | |
+++ b/lib/liquid_renderable.rb | |
@@ -2,7 +2,7 @@ module LiquidRenderable | |
CLONE_TITLE_REGEXP = %r{(\d+)$} | |
- def render_liquid!(controller, channel, edit, draft = false) | |
+ def render_liquid!(controller, channel, edit, draft = false, locals = {}) | |
# override channel with mobile if microsite is requested from a mobile device | |
if channel == 'microsite' && controller.send(:mobile?) | |
channel = 'mobile' | |
@@ -15,7 +15,8 @@ module LiquidRenderable | |
:social_page => controller.instance_variable_get(:@social_page), | |
:fb_info => controller.instance_variable_get(:@fb_info), | |
:edit => edit, | |
- :draft => draft} | |
+ :draft => draft, | |
+ :locals => locals} | |
) | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment