module Rails::Generators::ResourceHelpers

def assign_controller_names!(name)

def assign_controller_names!(name)
  @controller_name = name
  @controller_class_path = name.include?("/") ? name.split("/") : name.split("::")
  @controller_class_path.map!(&:underscore)
  @controller_file_name = @controller_class_path.pop
end