Skip to content

Commit

Permalink
Define before_remove_const callback
Browse files Browse the repository at this point in the history
Closes #465
  • Loading branch information
haines committed Feb 17, 2013
1 parent 273196f commit 9ab4539
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lib/draper/automatic_delegation.rb
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,12 @@ def respond_to_missing?(method, include_private = false)
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
Expand Down

0 comments on commit 9ab4539

Please sign in to comment.