Sha256: d0bc808c60edcf530a60c4f52efcf67dde4aaf057f61daa7eedba32a890a3420
Contents?: true
Size: 549 Bytes
Versions: 5
Compression:
Stored size: 549 Bytes
Contents
if defined?(ActionView) and defined?(ActionView::Base) class ActionView::Template alias_method :render_original, :render def render(view, locals, buffer=nil, &block) view.instance_variable_set(:@whowish_word_page, @identifier) if view.controller.respond_to?(:whowish_word_edit_mode) view.instance_variable_set(:@whowish_word_edit_mode, view.controller.whowish_word_edit_mode) end return render_original(view, locals, buffer, &block) end end end
Version data entries
5 entries across 5 versions & 1 rubygems