method
boolean?
v7.1.3.2 -
Show latest stable
- Class:
TestUnit::Generators::ScaffoldGenerator
boolean?(name)private
No documentation available.
# File railties/lib/rails/generators/test_unit/scaffold/scaffold_generator.rb, line 57
def boolean?(name)
attribute = attributes.find { |attr| attr.name == name }
attribute&.type == :boolean
end