跳至内容 跳至搜索
方法
B
C
R

实例公共方法

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.net.cn/#{badge_version}"
end

rails_version()

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