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:
parent
9dcb83cb66
commit
6f731dcfb5
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue