method
attributes_string
v8.1.1 -
Show latest stable
- Class:
TestUnit::Generators::ScaffoldGenerator
attributes_string()private
No documentation available.
# File railties/lib/rails/generators/test_unit/scaffold/scaffold_generator.rb, line 43
def attributes_string
if attributes_hash.empty?
"{}"
else
"{ #{attributes_hash.map { |k, v| "#{k}: #{v}" }.join(", ")} }"
end
end