Skip to Content Skip to Search
Methods
B
C
R

Instance Public methods

badge_version()

# File railties/lib/rails/api/task.rb, line 226
def badge_version
  "v#{rails_version}"
end

canonical_url()

# File railties/lib/rails/api/task.rb, line 230
def canonical_url
  "https://api.rubyonrails.org/#{badge_version}"
end

rails_version()

# File railties/lib/rails/api/task.rb, line 222
def rails_version
  File.read("RAILS_VERSION").strip
end