method

attributes_string

Importance_0
v8.1.1 - Show latest stable - 0 notes - Class: TestUnit::Generators::ScaffoldGenerator
attributes_string() private

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide source
# 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
Register or log in to add new notes.