Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Delete folder if it is empty after rails d #8

Open
lessless opened this issue Oct 9, 2013 · 1 comment
Open

Delete folder if it is empty after rails d #8

lessless opened this issue Oct 9, 2013 · 1 comment

Comments

@lessless
Copy link

lessless commented Oct 9, 2013

Say, I created a page

rails g joosy:page front/urls/index
       exist  app/assets/javascripts
      create  app/assets/javascripts/pages/front/urls/index.coffee
      create  app/assets/javascripts/templates/pages/front/urls/index.jst.hamlc

and than destroyed it

rails d joosy:page front/urls/index
      remove  app/assets/javascripts/pages/front/urls/index.coffee
      remove  app/assets/javascripts/templates/pages/front/urls/index.jst.hamlc

Despite that files are removed, empty folder app/assets/javascripts/pages/front remains. I belive it should be deleted as well.

@inossidabile
Copy link
Member

Yes it makes sense.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants