rails/rails — comment on commit dad7fdc5734a3813246f238ac5760b2076932216
File:  line 0
By drogus:

@pavelvasev till now 2 versions of plugins needed to be maintained by rails team: vendor/plugins and regular gems (which can contain Railtie or Engine). If you want to simply extract a bunch of code to a plugin you can still easily do it, just generate a plugin somewhere in your app's dir, like

```
rails plugin new vendor/plugins/foo
```

and add it to gemfile like that:

```ruby
gem 'foo', :path => "vendor/plugins/foo"
```

The second step (ie. adding line to a Gemfile) is done automatically if you create plugin somewhere inside app's directory on master.