Skip to content

Commit

Permalink
Linkify code references [ci-skip]
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathanhefner committed Aug 6, 2022
1 parent b13107f commit 32c169d
Show file tree
Hide file tree
Showing 6 changed files with 19 additions and 19 deletions.
2 changes: 1 addition & 1 deletion actionpack/lib/abstract_controller/helpers.rb
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ def #{method}(*args, &block)
# The last two assume that <tt>"foo".camelize</tt> returns "Foo".
#
# When strings or symbols are passed, the method finds the actual module
# object using +String#constantize+. Therefore, if the module has not been
# object using String#constantize. Therefore, if the module has not been
# yet loaded, it has to be autoloadable, which is normally the case.
#
# Namespaces are supported. The following calls include +Foo::BarHelper+:
Expand Down
6 changes: 3 additions & 3 deletions actionview/lib/action_view/helpers/form_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -1443,7 +1443,7 @@ def date_field(object_name, method, options = {})
# It is also possible to override this by passing the "value" option.
#
# === Options
# * Accepts same options as time_field_tag
# * Accepts same options as FormTagHelper#time_field_tag
#
# === Example
# time_field("task", "started_at")
Expand Down Expand Up @@ -1563,15 +1563,15 @@ def email_field(object_name, method, options = {})
# Returns an input tag of type "number".
#
# ==== Options
# * Accepts same options as number_field_tag
# * Accepts same options as FormTagHelper#number_field_tag
def number_field(object_name, method, options = {})
Tags::NumberField.new(object_name, method, self, options).render
end

# Returns an input tag of type "range".
#
# ==== Options
# * Accepts same options as range_field_tag
# * Accepts same options as FormTagHelper#range_field_tag
def range_field(object_name, method, options = {})
Tags::RangeField.new(object_name, method, self, options).render
end
Expand Down
24 changes: 12 additions & 12 deletions actionview/lib/action_view/helpers/form_tag_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -657,7 +657,7 @@ def field_set_tag(legend = nil, options = nil, &block)
# Creates a text field of type "color".
#
# ==== Options
# * Accepts the same options as text_field_tag.
# * Accepts the same options as #text_field_tag.
#
# ==== Examples
# color_field_tag 'name'
Expand All @@ -678,7 +678,7 @@ def color_field_tag(name, value = nil, options = {})
# Creates a text field of type "search".
#
# ==== Options
# * Accepts the same options as text_field_tag.
# * Accepts the same options as #text_field_tag.
#
# ==== Examples
# search_field_tag 'name'
Expand All @@ -699,7 +699,7 @@ def search_field_tag(name, value = nil, options = {})
# Creates a text field of type "tel".
#
# ==== Options
# * Accepts the same options as text_field_tag.
# * Accepts the same options as #text_field_tag.
#
# ==== Examples
# telephone_field_tag 'name'
Expand All @@ -721,7 +721,7 @@ def telephone_field_tag(name, value = nil, options = {})
# Creates a text field of type "date".
#
# ==== Options
# * Accepts the same options as text_field_tag.
# * Accepts the same options as #text_field_tag.
#
# ==== Examples
# date_field_tag 'name'
Expand All @@ -746,7 +746,7 @@ def date_field_tag(name, value = nil, options = {})
# * <tt>:max</tt> - The maximum acceptable value.
# * <tt>:step</tt> - The acceptable value granularity.
# * <tt>:include_seconds</tt> - Include seconds and ms in the output timestamp format (true by default).
# * Otherwise accepts the same options as text_field_tag.
# * Otherwise accepts the same options as #text_field_tag.
def time_field_tag(name, value = nil, options = {})
text_field_tag(name, value, options.merge(type: :time))
end
Expand All @@ -758,7 +758,7 @@ def time_field_tag(name, value = nil, options = {})
# * <tt>:max</tt> - The maximum acceptable value.
# * <tt>:step</tt> - The acceptable value granularity.
# * <tt>:include_seconds</tt> - Include seconds in the output timestamp format (true by default).
# * Otherwise accepts the same options as text_field_tag.
# * Otherwise accepts the same options as #text_field_tag.
def datetime_field_tag(name, value = nil, options = {})
text_field_tag(name, value, options.merge(type: "datetime-local"))
end
Expand All @@ -771,7 +771,7 @@ def datetime_field_tag(name, value = nil, options = {})
# * <tt>:min</tt> - The minimum acceptable value.
# * <tt>:max</tt> - The maximum acceptable value.
# * <tt>:step</tt> - The acceptable value granularity.
# * Otherwise accepts the same options as text_field_tag.
# * Otherwise accepts the same options as #text_field_tag.
def month_field_tag(name, value = nil, options = {})
text_field_tag(name, value, options.merge(type: :month))
end
Expand All @@ -782,15 +782,15 @@ def month_field_tag(name, value = nil, options = {})
# * <tt>:min</tt> - The minimum acceptable value.
# * <tt>:max</tt> - The maximum acceptable value.
# * <tt>:step</tt> - The acceptable value granularity.
# * Otherwise accepts the same options as text_field_tag.
# * Otherwise accepts the same options as #text_field_tag.
def week_field_tag(name, value = nil, options = {})
text_field_tag(name, value, options.merge(type: :week))
end

# Creates a text field of type "url".
#
# ==== Options
# * Accepts the same options as text_field_tag.
# * Accepts the same options as #text_field_tag.
#
# ==== Examples
# url_field_tag 'name'
Expand All @@ -811,7 +811,7 @@ def url_field_tag(name, value = nil, options = {})
# Creates a text field of type "email".
#
# ==== Options
# * Accepts the same options as text_field_tag.
# * Accepts the same options as #text_field_tag.
#
# ==== Examples
# email_field_tag 'name'
Expand All @@ -838,7 +838,7 @@ def email_field_tag(name, value = nil, options = {})
# <tt>:max</tt> values.
# * <tt>:within</tt> - Same as <tt>:in</tt>.
# * <tt>:step</tt> - The acceptable value granularity.
# * Otherwise accepts the same options as text_field_tag.
# * Otherwise accepts the same options as #text_field_tag.
#
# ==== Examples
# number_field_tag 'quantity'
Expand Down Expand Up @@ -882,7 +882,7 @@ def number_field_tag(name, value = nil, options = {})
# Creates a range form element.
#
# ==== Options
# * Accepts the same options as number_field_tag.
# * Accepts the same options as #number_field_tag.
def range_field_tag(name, value = nil, options = {})
number_field_tag(name, value, options.merge(type: :range))
end
Expand Down
2 changes: 1 addition & 1 deletion activerecord/lib/active_record/encryption/message.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ module Encryption
# * An encrypted payload
# * A list of unencrypted headers
#
# See +Encryptor#encrypt+
# See Encryptor#encrypt
class Message
attr_accessor :payload, :headers

Expand Down
2 changes: 1 addition & 1 deletion activerecord/lib/active_record/encryption/properties.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ module Encryption
#
# message.headers.encrypted_data_key # instead of message.headers[:k]
#
# See +Properties::DEFAULT_PROPERTIES+, +Key+, +Message+
# See +Properties::DEFAULT_PROPERTIES+, Key, Message
class Properties
ALLOWED_VALUE_CLASSES = [String, ActiveRecord::Encryption::Message, Numeric, Integer, Float, BigDecimal, TrueClass, FalseClass, Symbol, NilClass]

Expand Down
2 changes: 1 addition & 1 deletion activesupport/lib/active_support/cache.rb
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ def retrieve_store_class(store)
# popular cache store for large production websites.
#
# Some implementations may not support all methods beyond the basic cache
# methods of +fetch+, +write+, +read+, +exist?+, and +delete+.
# methods of #fetch, #write, #read, #exist?, and #delete.
#
# ActiveSupport::Cache::Store can store any Ruby object that is supported by
# its +coder+'s +dump+ and +load+ methods.
Expand Down

0 comments on commit 32c169d

Please sign in to comment.