Methods

Instance Public methods

badge_version()

📝 Source code
# File railties/lib/rails/api/task.rb, line 225
      def badge_version
        "v#{rails_version}"
      end
🔎 See on GitHub

canonical_url()

📝 Source code
# File railties/lib/rails/api/task.rb, line 229
      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 221
      def rails_version
        File.read("RAILS_VERSION").strip
      end
🔎 See on GitHub