method

create_generated_attribute

rails latest stable - Class: Rails::Generators::Testing::Behaviour

Method deprecated or moved

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

create_generated_attribute(attribute_type, name = "test", index = nil)
public

Create a Rails::Generators::GeneratedAttribute by supplying the attribute type and, optionally, the attribute name:

create_generated_attribute(:string, "name")