class Rails::Generators::NamedBase

Private Instance Methods

destroy(what, *args) click to toggle source
# File lib/generators/curation_concerns/work/work_generator.rb, line 6
def destroy(what, *args)
  log :destroy, what
  argument = args.map(&:to_s).flatten.join(' ')

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