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

Define before_remove_const callback

Closes #465
This commit is contained in:
Andrew Haines 2013-02-17 10:38:47 +00:00
parent 273196f7f0
commit 9ab45399b9

View file

@ -39,6 +39,12 @@ module Draper
def delegatable?(method)
source_class? && source_class.respond_to?(method)
end
# @private
# Avoids reloading the model class when ActiveSupport clears autoloaded
# dependencies in development mode.
def before_remove_const
end
end
included do