Methods
Instance Public methods
badge_version()
📝 Source code
# File railties/lib/rails/api/task.rb, line 226
def badge_version
"v#{rails_version}"
end
🔎 See on GitHub
canonical_url()
📝 Source code
# File railties/lib/rails/api/task.rb, line 230
def canonical_url
"https://api.rubyonrails.org/#{badge_version}"
end
🔎 See on GitHub
rails_version()
📝 Source code
# File railties/lib/rails/api/task.rb, line 222
def rails_version
File.read("RAILS_VERSION").strip
end
🔎 See on GitHub