pass the attr method_name in the prepare method
add support for model attr