Sha256: f2090a5b68a01b022528e99aa1758683ae8e455fb3e88e32cf044d16eb5af5f1

Contents?: true

Size: 879 Bytes

Versions: 14

Compression:

Stored size: 879 Bytes

Contents

# if defined?(ActionView) and defined?(ActionView::Base)
  
#   class ActionView::Template
    
#     alias_method :render_original, :render
    
#     def render(view, locals, buffer=nil, &block)

#       previous_whowish_word_page = nil
      
#       if view.instance_variable_defined?(:@whowish_word_page)
#         previous_whowish_word_page = view.instance_variable_get(:@whowish_word_page)
#       end
    
#       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
      
#       html = render_original(view, locals, buffer, &block)
      
#       view.instance_variable_set(:@whowish_word_page, previous_whowish_word_page)

#       return html
#     end
  
#   end
  
# end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
whowish_word-0.6.5 lib/whowish_word/action_view/template.rb
whowish_word-0.6.4 lib/whowish_word/action_view/template.rb
whowish_word-0.6.3 lib/whowish_word/action_view/template.rb
whowish_word-0.6.2 lib/whowish_word/action_view/template.rb
whowish_word-0.6.2gem lib/whowish_word/action_view/template.rb
whowish_word-0.6.1 lib/whowish_word/action_view/template.rb
whowish_word-0.6.0 lib/whowish_word/action_view/template.rb
whowish_word-0.5.5 lib/whowish_word/action_view/template.rb
whowish_word-0.5.4 lib/whowish_word/action_view/template.rb
whowish_word-0.5.3 lib/whowish_word/action_view/template.rb
whowish_word-0.5.2 lib/whowish_word/action_view/template.rb
whowish_word-0.5.1 lib/whowish_word/action_view/template.rb
whowish_word-0.5.0 lib/whowish_word/action_view/template.rb
whowish_word-0.4.0 lib/whowish_word/action_view/template.rb