Methods

Instance Public methods

badge_version()

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

canonical_url()

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