1
0
Fork 0
mirror of https://github.com/drapergem/draper synced 2023-03-27 23:21:17 -04:00

Use the ActiveSupport::Dependencies functionality for determining whether files should be load-ed or require-ed -- Issue #32

This commit is contained in:
Ryan Cook 2012-05-09 09:58:11 -06:00
parent 9dcb83cb66
commit 6f731dcfb5

View file

@ -6,7 +6,7 @@ module Draper
def self.load_app_local_decorators
decorator_files = Dir[ "#{ Rails.root }/#{ app_local_decorator_glob }" ]
decorator_files.each { |d| load d }
decorator_files.each { |d| require_dependency d }
end
def self.setup(component)