Fixed documentation for release (AS)
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1735 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
This commit is contained in:
parent
169eb781f1
commit
dc8989a425
@ -1,5 +1,5 @@
|
|||||||
require File.dirname(__FILE__) + '/cgi/escape_skipping_slashes'
|
require File.dirname(__FILE__) + '/cgi/escape_skipping_slashes'
|
||||||
|
|
||||||
class CGI
|
class CGI #:nodoc:
|
||||||
extend(ActiveSupport::CoreExtensions::CGI::EscapeSkippingSlashes)
|
extend(ActiveSupport::CoreExtensions::CGI::EscapeSkippingSlashes)
|
||||||
end
|
end
|
||||||
|
@ -50,7 +50,7 @@ def convert_value(value)
|
|||||||
module ActiveSupport #:nodoc:
|
module ActiveSupport #:nodoc:
|
||||||
module CoreExtensions #:nodoc:
|
module CoreExtensions #:nodoc:
|
||||||
module Hash #:nodoc:
|
module Hash #:nodoc:
|
||||||
module IndifferentAccess
|
module IndifferentAccess #:nodoc:
|
||||||
def with_indifferent_access
|
def with_indifferent_access
|
||||||
HashWithIndifferentAccess.new(self)
|
HashWithIndifferentAccess.new(self)
|
||||||
end
|
end
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
class MissingSourceFile < LoadError
|
class MissingSourceFile < LoadError #:nodoc:
|
||||||
attr_reader :path
|
attr_reader :path
|
||||||
def initialize(message, path)
|
def initialize(message, path)
|
||||||
super(message)
|
super(message)
|
||||||
@ -24,10 +24,10 @@ def self.from_message(message)
|
|||||||
]
|
]
|
||||||
end
|
end
|
||||||
|
|
||||||
module ActiveSupport
|
module ActiveSupport #:nodoc:
|
||||||
module CoreExtensions
|
module CoreExtensions #:nodoc:
|
||||||
module LoadErrorExtensions
|
module LoadErrorExtensions #:nodoc:
|
||||||
module LoadErrorClassMethods
|
module LoadErrorClassMethods #:nodoc:
|
||||||
def new(*args)
|
def new(*args)
|
||||||
(self == LoadError && MissingSourceFile.from_message(args.first)) || super
|
(self == LoadError && MissingSourceFile.from_message(args.first)) || super
|
||||||
end
|
end
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
require File.dirname(__FILE__) + '/module_attribute_accessors'
|
require File.dirname(__FILE__) + '/module_attribute_accessors'
|
||||||
|
|
||||||
module Dependencies
|
module Dependencies #:nodoc:
|
||||||
extend self
|
extend self
|
||||||
|
|
||||||
@@loaded = [ ]
|
@@loaded = [ ]
|
||||||
@ -48,7 +48,7 @@ def remove_subclasses_for(*classes)
|
|||||||
# load the relavent files automatically.
|
# load the relavent files automatically.
|
||||||
#
|
#
|
||||||
# Ruby-style modules are supported, as a folder named 'submodule' will load 'submodule.rb' when available.
|
# Ruby-style modules are supported, as a folder named 'submodule' will load 'submodule.rb' when available.
|
||||||
class LoadingModule < Module
|
class LoadingModule < Module #:nodoc:
|
||||||
attr_reader :path
|
attr_reader :path
|
||||||
attr_reader :root
|
attr_reader :root
|
||||||
|
|
||||||
@ -111,7 +111,7 @@ def const_available?(name)
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
class RootLoadingModule < LoadingModule
|
class RootLoadingModule < LoadingModule #:nodoc:
|
||||||
attr_reader :load_paths
|
attr_reader :load_paths
|
||||||
|
|
||||||
def initialize(*paths)
|
def initialize(*paths)
|
||||||
@ -137,7 +137,7 @@ def clear!
|
|||||||
end
|
end
|
||||||
|
|
||||||
# This object defines a path from which Constants can be loaded.
|
# This object defines a path from which Constants can be loaded.
|
||||||
class ConstantLoadPath
|
class ConstantLoadPath #:nodoc:
|
||||||
# Create a new load path with the filesystem path
|
# Create a new load path with the filesystem path
|
||||||
def initialize(root) @root = root end
|
def initialize(root) @root = root end
|
||||||
|
|
||||||
@ -205,7 +205,7 @@ def require(file, *extras)
|
|||||||
end
|
end
|
||||||
|
|
||||||
# Add file-blaming to exceptions
|
# Add file-blaming to exceptions
|
||||||
class Exception
|
class Exception #:nodoc:
|
||||||
def blame_file!(file)
|
def blame_file!(file)
|
||||||
(@blamed_files ||= []).unshift file
|
(@blamed_files ||= []).unshift file
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user