Sha256: 083f70d99fa12e8759935d18900e69f34066d99f4d32dc93ec05fbc946460767
Contents?: true
Size: 504 Bytes
Versions: 1
Compression:
Stored size: 504 Bytes
Contents
require 'action_view' module ActiveDecorator module Helpers def method_missing(method, *args, &block) super #TODO need to make sure who raised the error? rescue NoMethodError => no_method_error begin @@_decorator_view_proxy ||= DecoratorViewProxy.new @@_decorator_view_proxy.send method, *args, &block rescue NoMethodError raise no_method_error end end class DecoratorViewProxy include ::ActionView::Helpers end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
active_decorator-0.2.1 | lib/active_decorator/helpers.rb |