firstdraft / appdev_template

A Rails template for generating homework projects
0 stars 1 forks source link

Remove 'concerns/' folder from controllers and models #68

Closed jelaniwoods closed 5 years ago

jelaniwoods commented 5 years ago

67 The changes made will now remove the concerns/ folder from both the controllers/ folder as well as the models/ folder.

There didn't seem to be a Thor method for removing folders specifically so I just used a Bash command.

raghubetina commented 5 years ago

@jelaniwoods Huh, really? Quite odd that Thor does not support removing. Maybe this is a slight improvement? https://stackoverflow.com/a/25008281

jelaniwoods commented 5 years ago

@raghubetina Seems I was mistaken! Apparently it's been aliased with remove_file, which seems not entirely accurate naming. remove_dir will still work and is a better name, although it's kind of hidden in the docs.

raghubetina commented 5 years ago

Cool. LGTM 👍