define_attribute_methods(*attr_names)
Instance Public methods
Declares the attributes that should be prefixed and suffixed by ActiveModel::AttributeMethods.
To use, pass attribute names (as strings or symbols), be sure to declare
define_attribute_methods after you define any prefix, suffix
or affix methods, or they will not hook in.
class Person
include ActiveModel::AttributeMethods
attr_accessor :name, :age, :address
attribute_method_prefix 'clear_'
# Call to define_attr