method

component_version

rails latest stable - Class: Rails::Info

Method deprecated or moved

This method is deprecated or moved on the latest stable version. The last existing version (v2.2.1) is shown here.

component_version(component)
public

No documentation available.

# File railties/builtin/rails_info/rails/info.rb, line 27
      def component_version(component)
        require "#{component}/version"
        "#{component.classify}::VERSION::STRING".constantize
      end