[ci skip] Small fixes in ActionView documentation.
This commit is contained in:
parent
6a27a88b9c
commit
f66946b11a
@ -29,7 +29,7 @@ module AssetTagHelper
|
||||
# to <tt>assets/javascripts</tt>, full paths are assumed to be relative to the document
|
||||
# root. Relative paths are idiomatic, use absolute paths only when needed.
|
||||
#
|
||||
# When passing paths, the ".js" extension is optional. If you do not want ".js"
|
||||
# When passing paths, the ".js" extension is optional. If you do not want ".js"
|
||||
# appended to the path <tt>extname: false</tt> can be set on the options.
|
||||
#
|
||||
# You can modify the HTML attributes of the script tag by passing a hash as the
|
||||
|
@ -143,7 +143,7 @@ module FormOptionsHelper
|
||||
#
|
||||
# The HTML specification says when +multiple+ parameter passed to select and all options got deselected
|
||||
# web browsers do not send any value to server. Unfortunately this introduces a gotcha:
|
||||
# if an +User+ model has many +roles+ and have +role_ids+ accessor, and in the form that edits roles of the user
|
||||
# if a +User+ model has many +roles+ and have +role_ids+ accessor, and in the form that edits roles of the user
|
||||
# the user deselects all roles from +role_ids+ multiple select box, no +role_ids+ parameter is sent. So,
|
||||
# any mass-assignment idiom like
|
||||
#
|
||||
|
@ -43,13 +43,13 @@ def initialize(options = {})
|
||||
end
|
||||
end
|
||||
|
||||
# preallocate all the default blocks for performance/memory consumption reasons
|
||||
# Preallocate all the default blocks for performance/memory consumption reasons
|
||||
PARTIAL_BLOCK = lambda { |cache, partial| cache[partial] = SmallCache.new }
|
||||
PREFIX_BLOCK = lambda { |cache, prefix| cache[prefix] = SmallCache.new(&PARTIAL_BLOCK) }
|
||||
NAME_BLOCK = lambda { |cache, name| cache[name] = SmallCache.new(&PREFIX_BLOCK) }
|
||||
KEY_BLOCK = lambda { |cache, key| cache[key] = SmallCache.new(&NAME_BLOCK) }
|
||||
|
||||
# usually a majority of template look ups return nothing, use this canonical preallocated array to save memory
|
||||
# Usually a majority of template look ups return nothing, use this canonical preallocated array to save memory
|
||||
NO_TEMPLATES = [].freeze
|
||||
|
||||
def initialize
|
||||
@ -75,7 +75,7 @@ def clear
|
||||
@query_cache.clear
|
||||
end
|
||||
|
||||
# Get the cache size. Do not call this
|
||||
# Get the cache size. Do not call this
|
||||
# method. This method is not guaranteed to be here ever.
|
||||
def size # :nodoc:
|
||||
size = 0
|
||||
|
Loading…
Reference in New Issue
Block a user