Skip to content

Commit

Permalink
Merge pull request #477 from haines/issue_465
Browse files Browse the repository at this point in the history
Define `before_remove_const` callback
  • Loading branch information
steveklabnik committed Feb 17, 2013
2 parents 0799cd4 + 9ab4539 commit 9efda27
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 9efda27

Please sign in to comment.