Skip to content

Commit

Permalink
Merge pull request #4004 from davydovanton/doc-fix-typos
Browse files Browse the repository at this point in the history
Fix typos in #render_in_context documentation
  • Loading branch information
timoschilling committed Jun 24, 2015
2 parents 1fb85de + 76351d9 commit 655e2be
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/active_admin/view_helpers/method_or_proc_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,8 @@ def render_or_call_method_or_proc_on(obj, string_symbol_or_proc, options = {})
end
end

# This method is different from the others in that it calls `instance_exec` on the reciever,
# passing it the proc. This evaluates the proc in the context of the reciever, thus changing
# This method is different from the others in that it calls `instance_exec` on the receiver,
# passing it the proc. This evaluates the proc in the context of the receiver, thus changing
# what `self` means inside the proc.
def render_in_context(context, obj, *args)
context = self if context.nil? # default to `self` only when nil
Expand Down

0 comments on commit 655e2be

Please sign in to comment.