varvet / godmin

Admin framework for Rails 5+
http://godmin-sandbox.herokuapp.com
MIT License
486 stars 47 forks source link

Add support for namespaced models to the resource generator #181

Closed jensljungblad closed 6 years ago

jensljungblad commented 8 years ago

This is what remains of https://github.com/varvet/godmin/issues/57.

Namespaced models are supported, but cannot be generated using the resource generator. The rails resource generator can create namespaced models, controllers and routes if passed a name on the form foo/bar. We should support this too.

Perhaps we can hook into rails generators?

There is a rails generator for creating routes: bin/rails g resource_route blargh/blorgh.