Skip to content

Commit

Permalink
Updated method_added to not to memoize CachingPresenter methods.
Browse files Browse the repository at this point in the history
  • Loading branch information
zdennis committed Jul 17, 2009
1 parent 7d8eb98 commit 1af1fb5
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/caching_presenter.rb
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,11 @@ def \#{name}(*myargs, &myblk)
end

def method_added(method_name)
memoize method_name.to_s
if self == CachingPresenter
super
else
memoize method_name.to_s
end
end
end
end

0 comments on commit 1af1fb5

Please sign in to comment.