Skip to content

Commit 67bc765

Browse files
Merge pull request rails#50062 from jonathanhefner/readme_rdoc-api-links
Use `api.rubyonrails.org` URLs in `README.rdoc` [ci-skip]
2 parents 3cac3c3 + 390db4b commit 67bc765

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

activemodel/README.rdoc

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ behavior out of the box:
5656
person.clear_name
5757
person.clear_age
5858

59-
{Learn more}[link:classes/ActiveModel/AttributeMethods.html]
59+
{Learn more}[https://api.rubyonrails.org/classes/ActiveModel/AttributeMethods.html]
6060

6161
* Callbacks for certain operations
6262

@@ -74,7 +74,7 @@ behavior out of the box:
7474
This generates +before_create+, +around_create+ and +after_create+
7575
class methods that wrap your create method.
7676

77-
{Learn more}[link:classes/ActiveModel/Callbacks.html]
77+
{Learn more}[https://api.rubyonrails.org/classes/ActiveModel/Callbacks.html]
7878

7979
* Tracking value changes
8080

@@ -110,7 +110,7 @@ behavior out of the box:
110110
person.save
111111
person.previous_changes # => {'name' => ['bob, 'robert']}
112112

113-
{Learn more}[link:classes/ActiveModel/Dirty.html]
113+
{Learn more}[https://api.rubyonrails.org/classes/ActiveModel/Dirty.html]
114114

115115
* Adding +errors+ interface to objects
116116

@@ -141,7 +141,7 @@ behavior out of the box:
141141
person.errors.full_messages
142142
# => ["Name cannot be nil"]
143143

144-
{Learn more}[link:classes/ActiveModel/Errors.html]
144+
{Learn more}[https://api.rubyonrails.org/classes/ActiveModel/Errors.html]
145145

146146
* Model name introspection
147147

@@ -152,7 +152,7 @@ behavior out of the box:
152152
NamedPerson.model_name.name # => "NamedPerson"
153153
NamedPerson.model_name.human # => "Named person"
154154

155-
{Learn more}[link:classes/ActiveModel/Naming.html]
155+
{Learn more}[https://api.rubyonrails.org/classes/ActiveModel/Naming.html]
156156

157157
* Making objects serializable
158158

@@ -179,7 +179,7 @@ behavior out of the box:
179179
s = SerialPerson.new
180180
s.to_json # => "{\"name\":null}"
181181

182-
{Learn more}[link:classes/ActiveModel/Serialization.html]
182+
{Learn more}[https://api.rubyonrails.org/classes/ActiveModel/Serialization.html]
183183

184184
* Internationalization (i18n) support
185185

@@ -190,7 +190,7 @@ behavior out of the box:
190190
Person.human_attribute_name('my_attribute')
191191
# => "My attribute"
192192

193-
{Learn more}[link:classes/ActiveModel/Translation.html]
193+
{Learn more}[https://api.rubyonrails.org/classes/ActiveModel/Translation.html]
194194

195195
* Validation support
196196

@@ -208,7 +208,7 @@ behavior out of the box:
208208
person.first_name = 'zoolander'
209209
person.valid? # => false
210210

211-
{Learn more}[link:classes/ActiveModel/Validations.html]
211+
{Learn more}[https://api.rubyonrails.org/classes/ActiveModel/Validations.html]
212212

213213
* Custom validators
214214

@@ -230,7 +230,7 @@ behavior out of the box:
230230
p.name = "Bob"
231231
p.valid? # => true
232232

233-
{Learn more}[link:classes/ActiveModel/Validator.html]
233+
{Learn more}[https://api.rubyonrails.org/classes/ActiveModel/Validator.html]
234234

235235

236236
== Download and installation

activerecord/README.rdoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ A short rundown of some of the major features:
157157
end
158158
end
159159

160-
{Learn more}[https://api.rubyonrails.org/v6.1.0/classes/ActiveRecord/Migration.html]
160+
{Learn more}[https://api.rubyonrails.org/classes/ActiveRecord/Migration.html]
161161

162162

163163
== Philosophy

0 commit comments

Comments
 (0)