Skip to content

Commit

Permalink
[engine] Checks private methods in scope as well
Browse files Browse the repository at this point in the history
  • Loading branch information
nesquena committed Apr 25, 2012
1 parent bc54b85 commit 2d7837d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/rabl/engine.rb
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ def respond_to?(name, include_private=false)

# Supports calling helpers defined for the template scope using method_missing hook
def method_missing(name, *args, &block)
context_scope.respond_to?(name) ? context_scope.send(name, *args, &block) : super
context_scope.respond_to?(name, true) ? context_scope.send(name, *args, &block) : super
end

def copy_instance_variables_from(object, exclude = []) #:nodoc:
Expand Down

0 comments on commit 2d7837d

Please sign in to comment.