diff options
Diffstat (limited to 'activesupport/lib')
-rw-r--r-- | activesupport/lib/active_support/reloadable.rb | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/activesupport/lib/active_support/reloadable.rb b/activesupport/lib/active_support/reloadable.rb index 49e6442a37..7749f0b165 100644 --- a/activesupport/lib/active_support/reloadable.rb +++ b/activesupport/lib/active_support/reloadable.rb @@ -14,4 +14,15 @@ module Reloadable included_in_classes.select { |klass| klass.reloadable? } end end + + module OnlySubclasses + class << self + def included(base) #nodoc: + base.send :include, Reloadable + (class << base; self; end;).class_eval do + define_method(:reloadable?) { self != base } + end + end + end + end end
\ No newline at end of file |