mirror of
https://github.com/drapergem/draper
synced 2023-03-27 23:21:17 -04:00
0b03d9c21e
We need to be able to let draper get a copy of the view_context no matter what happens. AC::Base doesn't really let us do that. So we have to monkeypatch. This was originally suggested in https://github.com/jcasimir/draper/issues/124#issuecomment-6954291 by @rf-. It appears to be the cleanest way to take care of this problem, and shouldn't affect any other things, since we keep the exact same semantics of view_context. Theoretically: Fixes #124 Fixes #109
17 lines
566 B
Ruby
17 lines
566 B
Ruby
require 'action_view'
|
|
|
|
require 'draper/version'
|
|
require 'draper/system'
|
|
require 'draper/active_model_support'
|
|
require 'draper/base'
|
|
require 'draper/lazy_helpers'
|
|
require 'draper/model_support'
|
|
require 'draper/helper_support'
|
|
require 'draper/view_context'
|
|
require 'draper/decorated_enumerable_proxy'
|
|
require 'draper/railtie' if defined?(Rails)
|
|
require 'draper/action_controller/base'
|
|
|
|
# Test Support
|
|
require 'draper/test/rspec_integration' if defined?(RSpec) and RSpec.respond_to?(:configure)
|
|
require 'draper/test/minitest_integration' if defined?(MiniTest::Spec)
|