Files
atom/bundles/ruby-on-rails.tmbundle/Support/plugins/footnotes-edge/lib/textmate_initialize.rb
2012-09-28 17:28:25 -06:00

15 lines
404 B
Ruby

class ActionController::Base
attr_accessor :render_without_footnotes
after_filter FootnoteFilter
protected
alias footnotes_original_render render
def render(options = nil, deprecated_status = nil, &block) #:doc:
if options.is_a? Hash
@render_without_footnotes = (options.delete(:footnotes) == false)
end
footnotes_original_render(options, deprecated_status, &block)
end
end