method

identical?

rails latest stable - Class: Rails::Generator::Commands::Create

Method deprecated or moved

This method is deprecated or moved on the latest stable version. The last existing version (v2.3.8) is shown here.

identical?(source, destination, &block)
public

Checks if the source and the destination file are identical. If passed a block then the source file is a template that needs to first be evaluated before being compared to the destination.