method

rake_tasks

rails latest stable - Class: Rails::RakeProxy

Method deprecated or moved

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

rake_tasks()
private

No documentation available.

# File railties/lib/rails/commands/rake_proxy.rb, line 17
      def rake_tasks
        return @rake_tasks if defined?(@rake_tasks)

        ActiveSupport::Deprecation.silence do
          require_application_and_environment!
        end

        Rake::TaskManager.record_task_metadata = true
        Rake.application.instance_variable_set(:@name, 'rails')
        Rails.application.load_tasks
        @rake_tasks = Rake.application.tasks.select(&:comment)
      end