firstdraft / draft_generators

Rails generators that help beginners learn to program.
MIT License
2 stars 3 forks source link

Fix activeadmin filename issue #20

Closed murugan-r closed 6 years ago

murugan-r commented 6 years ago

Fixes #16 .

arjunvenkat commented 6 years ago

It looks like this fix actually makes the generated model filenames and classnames plural instead.

For example,

rails g draft:resource Actor name

Will generate a model file called actors.rb:


class Actors < ApplicationRecord
end

and the same goes for the ActiveAdmin file of actors.rb

arjunvenkat commented 6 years ago

The above comment is being addressed by: Issue#28