mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Remove extra white spaces on ActiveSupport docs.
This commit is contained in:
parent
0034b7822d
commit
dd6c3676af
8 changed files with 9 additions and 9 deletions
|
@ -6,7 +6,7 @@ module ActiveSupport
|
|||
# Allows you to measure the execution time of a block
|
||||
# in a template and records the result to the log. Wrap this block around
|
||||
# expensive operations or possible bottlenecks to get a time reading
|
||||
# for the operation. For example, let's say you thought your file
|
||||
# for the operation. For example, let's say you thought your file
|
||||
# processing method was taking too long; you could wrap it in a benchmark block.
|
||||
#
|
||||
# <% benchmark "Process data files" do %>
|
||||
|
|
|
@ -2,7 +2,7 @@ require 'active_support/core_ext/object/duplicable'
|
|||
require 'active_support/core_ext/array/extract_options'
|
||||
require 'active_support/deprecation'
|
||||
|
||||
# Retained for backward compatibility. Methods are now included in Class.
|
||||
# Retained for backward compatibility. Methods are now included in Class.
|
||||
module ClassInheritableAttributes # :nodoc:
|
||||
DEPRECATION_WARNING_MESSAGE = "class_inheritable_attribute is deprecated, please use class_attribute method instead. Notice their behavior are slightly different, so refer to class_attribute documentation first"
|
||||
end
|
||||
|
|
|
@ -103,7 +103,7 @@ class Date
|
|||
alias_method :minus_without_duration, :-
|
||||
alias_method :-, :minus_with_duration
|
||||
|
||||
# Provides precise Date calculations for years, months, and days. The +options+ parameter takes a hash with
|
||||
# Provides precise Date calculations for years, months, and days. The +options+ parameter takes a hash with
|
||||
# any of these keys: <tt>:years</tt>, <tt>:months</tt>, <tt>:weeks</tt>, <tt>:days</tt>.
|
||||
def advance(options)
|
||||
options = options.dup
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
class File
|
||||
# Write to a file atomically. Useful for situations where you don't
|
||||
# Write to a file atomically. Useful for situations where you don't
|
||||
# want other processes or threads to see half-written files.
|
||||
#
|
||||
# File.atomic_write("important.file") do |file|
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
class Object
|
||||
# Makes backticks behave (somewhat more) similarly on all platforms.
|
||||
# On win32 `nonexistent_command` raises Errno::ENOENT; on Unix, the
|
||||
# spawned shell prints a message to stderr and sets $?. We emulate
|
||||
# spawned shell prints a message to stderr and sets $?. We emulate
|
||||
# Unix on the former but not the latter.
|
||||
def `(command) #:nodoc:
|
||||
super
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
require 'active_support/core_ext/kernel/reporting'
|
||||
|
||||
module Kernel
|
||||
# Require a library with fallback to RubyGems. Warnings during library
|
||||
# Require a library with fallback to RubyGems. Warnings during library
|
||||
# loading are silenced to increase signal/noise for application warnings.
|
||||
def require_library_or_gem(library_name)
|
||||
silence_warnings do
|
||||
|
|
|
@ -22,7 +22,7 @@ class Object
|
|||
# <tt>object.presence</tt> is equivalent to <tt>object.present? ? object : nil</tt>.
|
||||
#
|
||||
# This is handy for any representation of objects where blank is the same
|
||||
# as not present at all. For example, this simplifies a common check for
|
||||
# as not present at all. For example, this simplifies a common check for
|
||||
# HTTP POST/query parameters:
|
||||
#
|
||||
# state = params[:state] if params[:state].present?
|
||||
|
|
|
@ -652,7 +652,7 @@ module ActiveSupport #:nodoc:
|
|||
end
|
||||
|
||||
class LoadingModule #:nodoc:
|
||||
# Old style environment.rb referenced this method directly. Please note, it doesn't
|
||||
# Old style environment.rb referenced this method directly. Please note, it doesn't
|
||||
# actually *do* anything any more.
|
||||
def self.root(*args)
|
||||
if defined?(Rails) && Rails.logger
|
||||
|
|
Loading…
Reference in a new issue