Skip to Content Skip to Search

class Rails::API::StableTask

Inherits From

Public instance methods

Source code GitHub
# File railties/lib/rails/api/task.rb, line 225
def badge_version
  "v#{rails_version}"
end
Source code GitHub
# File railties/lib/rails/api/task.rb, line 229
def canonical_url
  "https://api.rubyonrails.org/#{badge_version}"
end
Source code GitHub
# File railties/lib/rails/api/task.rb, line 221
def rails_version
  File.read("RAILS_VERSION").strip
end

Definition files