Skip to content

Commit

Permalink
Trying to proxy user-created helpers
Browse files Browse the repository at this point in the history
  • Loading branch information
jcasimir committed Jul 11, 2011
1 parent eafd4cf commit a830adb
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/draper/base.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ class Base
include ActionView::Helpers::TagHelper
include ActionView::Helpers::UrlHelper
include ActionView::Helpers::TextHelper
#include ApplicationHelper #if defined?(ApplicationHelper)

require 'active_support/core_ext/class/attribute'
class_attribute :denied, :allowed
Expand Down Expand Up @@ -32,6 +31,10 @@ def self.allows(*input_allows)
def self.decorate(input)
input.respond_to?(:each) ? input.map{|i| new(i)} : new(input)
end

def helpers
ActionController::Base.helpers
end

private
def select_methods
Expand Down

0 comments on commit a830adb

Please sign in to comment.