Created
June 5, 2010 16:22
-
-
Save netguru/426737 to your computer and use it in GitHub Desktop.
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
class Liquid::Strainer | |
def is_haml?; false; end | |
def controller | |
@controller ||= @context.registers[:controller] | |
end | |
delegate :request, :to => :controller | |
delegate :params, :to => :request | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi Wiktor, i've saw your post in liquid template google group,
i would like to use this code, but dont work for me,
where do you put this code in a railsapp ? i 've tried to put it in the lib folder, and call the helper like this
{{ @posts | will_paginate}}
but it dont work