lib/draper/helper_proxy.rb in draper-1.0.0.beta6 vs lib/draper/helper_proxy.rb in draper-1.0.0

- old
+ new

@@ -1,9 +1,10 @@ module Draper + # Provides access to helper methods - both Rails built-in helpers, and those + # defined in your application. class HelperProxy - # Some helpers are private, for example html_escape... as a workaround - # we are wrapping the helpers in a delegator that passes the methods - # along through a send, which will ignore private/public distinctions + + # Sends helper methods to the view context. def method_missing(method, *args, &block) view_context.send(method, *args, &block) end private