instance method create_plugin

Ruby on Rails 2.2.3

Last seen in v2.3.18 Private — implementation detail, not part of the public API

Available in: v2.2.3 v2.3.18

Signature

create_plugin(path)

Attempts to create a plugin from the given path. If the created plugin is valid? (see Rails::Plugin#valid?) then the plugin instance is returned; otherwise nil.

Parameters

path req
Source
# File railties/lib/rails/plugin/locator.rb, line 53
        def create_plugin(path)
          plugin = Rails::Plugin.new(path)
          plugin.valid? ? plugin : nil
        end

Defined in railties/lib/rails/plugin/locator.rb line 53 · View on GitHub · Improve this page · Find usages on GitHub

Defined in Rails::Plugin::FileSystemLocator

Type at least 2 characters to search.

Use the arrow keys to navigate results, Enter to open one, Escape to close.

Keyboard shortcuts

/
Focus search
⌘K / Ctrl-K
Command palette
?
This help
Esc
Close