instance method
create_plugin
Ruby on Rails 2.2.3
Since v2.2.3 Last seen in v2.3.18 PrivateAvailable 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
-
pathreq
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