We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents c06e61f + 3b36f1f commit 09f5d81Copy full SHA for 09f5d81
railties/lib/rails/api/task.rb
@@ -167,6 +167,7 @@ def setup_horo_variables # :nodoc:
167
ENV["HORO_PROJECT_NAME"] = "Ruby on Rails"
168
ENV["HORO_PROJECT_VERSION"] = rails_version
169
ENV["HORO_BADGE_VERSION"] = badge_version
170
+ ENV["HORO_CANONICAL_URL"] = canonical_url
171
end
172
173
def api_main
@@ -197,6 +198,10 @@ def rails_version
197
198
def badge_version
199
"edge"
200
201
+
202
+ def canonical_url
203
+ "https://edgeapi.rubyonrails.org"
204
+ end
205
206
207
class StableTask < RepoTask
@@ -207,6 +212,10 @@ def rails_version
212
208
213
"v#{rails_version}"
209
214
215
216
217
+ "https://api.rubyonrails.org/#{badge_version}"
218
210
219
211
220
221
0 commit comments