Skip to content

Instantly share code, notes, and snippets.

@bguthrie
Created September 12, 2009 19:30
Show Gist options
  • Save bguthrie/185949 to your computer and use it in GitHub Desktop.
Save bguthrie/185949 to your computer and use it in GitHub Desktop.
class BlankHelper
include ActionView::Helpers::UrlHelper
include ActionView::Helpers::TagHelper
include ActionView::Helpers::TextHelper
include ActionView::Helpers::FormTagHelper
include ActionView::Helpers::CaptureHelper
include ActionView::Helpers::AssetTagHelper
attr_accessor_with_default :output_buffer, ""
class << self
def for(helper_class)
self.new.extend(helper_class)
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment