method
create_generated_attribute
v7.1.3.4 -
Show latest stable
- Class:
Rails::Generators::Testing::Behavior
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")