Flowdock
method

plugins

Importance_0
v2.1.0 - Show latest stable - 0 notes - Class: Rails::Plugin::GemLocator
plugins() public

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide source
# File railties/lib/rails/plugin/locator.rb, line 80
      def plugins
        specs  = initializer.configuration.gems.map(&:specification)
        specs += Gem.loaded_specs.values.select do |spec|
          spec.loaded_from && # prune stubs
            File.exist?(File.join(spec.full_gem_path, "rails", "init.rb"))
        end
        specs.compact!

        require "rubygems/dependency_list"

        deps = Gem::DependencyList.new
        deps.add(*specs) unless specs.empty?

        deps.dependency_order.collect do |spec|
          Rails::GemPlugin.new(spec)
        end
      end
Register or log in to add new notes.