Skip to content

Instantly share code, notes, and snippets.

@JonCrawford
Forked from netguru/gist:426737
Created June 6, 2010 14:47
Show Gist options
  • Save JonCrawford/427627 to your computer and use it in GitHub Desktop.
Save JonCrawford/427627 to your computer and use it in GitHub Desktop.
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