Skip to content

Commit

Permalink
Merge pull request rails#51989 from p8/activesupport/improve-alias-me…
Browse files Browse the repository at this point in the history
…thod-nodoc

Use `:nodoc:` for `alias_method` instead of `:stopdoc:` [ci-skip]
  • Loading branch information
p8 authored Jun 1, 2024
2 parents d97fb45 + 4735418 commit 8336aa7
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions activesupport/lib/active_support/values/time_zone.rb
Original file line number Diff line number Diff line change
Expand Up @@ -208,9 +208,7 @@ def find_tzinfo(name)
TZInfo::Timezone.get(MAPPING[name] || name)
end

# :stopdoc:
alias_method :create, :new
# :startdoc:
alias_method :create, :new # :nodoc:

# Returns a TimeZone instance with the given name, or +nil+ if no
# such TimeZone instance exists. (This exists to support the use of
Expand Down

0 comments on commit 8336aa7

Please sign in to comment.