class ActiveModel::AttributeMutationTracker
def changed?(attr_name, from: OPTION_NOT_GIVEN, to: OPTION_NOT_GIVEN)
Experimental RBS support (using type sampling data from the type_fusion
project).
def changed?: (String attr_name, from: Object, to: Object) -> false
This signature was generated using 4 samples from 1 application.
def changed?(attr_name, from: OPTION_NOT_GIVEN, to: OPTION_NOT_GIVEN) attribute_changed?(attr_name) && (OPTION_NOT_GIVEN == from || original_value(attr_name) == type_cast(attr_name, from)) && (OPTION_NOT_GIVEN == to || fetch_value(attr_name) == type_cast(attr_name, to)) end