From 0aa0c84c179e82a2c7d206e75a5d515b82deeba5 Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Fri, 26 Jan 2007 21:37:38 +0000 Subject: Nodoc the irrelevant (from 1.2) git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6044 5ecf4fe2-1ee6-0310-87b1-e25e094e27de --- activesupport/lib/active_support/reloadable.rb | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) (limited to 'activesupport/lib/active_support/reloadable.rb') diff --git a/activesupport/lib/active_support/reloadable.rb b/activesupport/lib/active_support/reloadable.rb index baa8741b30..084bda1ee2 100644 --- a/activesupport/lib/active_support/reloadable.rb +++ b/activesupport/lib/active_support/reloadable.rb @@ -4,9 +4,8 @@ require 'active_support/deprecation' # # Deprecated as of Rails 1.2. # All autoloaded objects are now unloaded. -module Reloadable - class << self - +module Reloadable #:nodoc: + class << self def included(base) #nodoc: unless base.ancestors.include?(Reloadable::Subclasses) # Avoid double warning ActiveSupport::Deprecation.warn "Reloadable has been deprecated and has no effect.", caller @@ -37,7 +36,7 @@ module Reloadable # # Deprecated as of Rails 1.2. # All autoloaded objects are now unloaded. - module Subclasses + module Subclasses #:nodoc: def self.included(base) #nodoc: base.send :include, Reloadable ActiveSupport::Deprecation.warn "Reloadable::Subclasses has been deprecated and has no effect.", caller @@ -48,8 +47,7 @@ module Reloadable end end - module Deprecated - + module Deprecated #:nodoc: def self.included(base) class << base define_method(:reloadable?) do @@ -58,7 +56,5 @@ module Reloadable end end end - end - end \ No newline at end of file -- cgit v1.2.3