reallynew
reallynew

Reputation: 13

require path for plugins in rails 3

There is a plugin in here:

myproject\vendor\plugins\myplugin

How can i activate this plugin? what should i write?

Upvotes: 1

Views: 357

Answers (1)

Jacob Relkin
Jacob Relkin

Reputation: 163238

I actually don't think you need to require anything.

EDIT: As @Ryan Bigg said, if your plugin has either a init.rb or plugin_name.rb file, it will be automatically loaded. This goes without saying that you should require your plugin's files from within that file.

Upvotes: 1

Related Questions