def custom_fields_recipe_for(name)
      {
        'name'     => "#{self.relations[name.to_s].class_name.demodulize}#{self._id}",
        'rules'    => self.ordered_custom_fields(name).map(&:to_recipe),
        'version'  => self.custom_fields_version(name),
        'model_name' => self.relations[name.to_s].class_name.constantize.model_name.to_s
      }
    end
def custom_fields_recipe_for(name)
      {
        'name'     => "#{self.relations[name.to_s].class_name.demodulize}#{self._id}",
        'rules'    => self.ordered_custom_fields(name).map(&:to_recipe),
        'version'  => self.custom_fields_version(name),
        'model_name' => self.relations[name.to_s].class_name.constantize.model_name.to_s
      }
    end
Returns the recipe (meaning all the rules) needed to
 build the custom klass

 @param [ String, Symbol ] name The name of the relation.

 @return [ Array ] An array of hashes