class Rails::Generators::NamedBase

Private Instance Methods

destroy(what, *args) click to toggle source
# File lib/generators/worthwhile/work/work_generator.rb, line 5
def destroy(what, *args)
  log :destroy, what
  argument = args.map {|arg| arg.to_s }.flatten.join(" ")

  in_root {
    run_ruby_script("bin/rails destroy #{what} #{argument}", verbose: true)
  }
end