#
# Returns String to be used as a CSS class.
def column_type_class(model, attribute)
if column = model.columns_hash[attribute]
"column-#{column.type}"
else
"column-association"
end
end
# Public: Generate a CSS class for this attribute
#
# attribute - (String) The attribute.
#
# Examples
#
#
# # => |
#
# Returns String to be used as a CSS class.
def column_attribute_class(attribute)
"column-#{attribute}".parameterize
end
# Public: Call the BOOLEAN_BOOTSTRAP_MAP
def boolean_bootstrap_map
BOOLEAN_BOOTSTRAP_MAP
end
end
|