Skip to content
Browse files

Check before extending.

  • Loading branch information...
1 parent 77d8c53 commit faa90b622d5eabc0168b6c9da4219fafba81dd4f @josevalim josevalim committed May 4, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/action_view/helpers/prototype_helper.rb
View
2 lib/action_view/helpers/prototype_helper.rb
@@ -155,7 +155,7 @@ def initialize(context, &block) #:nodoc:
private
def include_helpers_from_context
- extend @context.helpers if @context.respond_to?(:helpers)
+ extend @context.helpers if @context.respond_to?(:helpers) && @context.helpers
extend GeneratorMethods
end

0 comments on commit faa90b6

Please sign in to comment.
Something went wrong with that request. Please try again.