def group_custom_fields(type, &block)
      unless block_given?
        block = lambda { |rule| rule['name'] }
      end

      self.custom_fields_recipe['rules'].find_all { |rule| rule['type'] == type }.map(&block)
    end
def group_custom_fields(type, &block)
      unless block_given?
        block = lambda { |rule| rule['name'] }
      end

      self.custom_fields_recipe['rules'].find_all { |rule| rule['type'] == type }.map(&block)
    end
:nodoc: