lib/hanami/commands/generate/model.rb
# Validates that the provided model name doesn't start with numbers
#
# @since 0.6.0
# @api private
Validates that the provided model name doesn't start with numbers
Validates that the provided model name doesn ' t start with numbers
def model_name_valid
          unless model_name.match(/^[a-z]/i)
            raise ArgumentError.new("Invalid model name. The model name shouldn't begin with a number.")
          end
        end
def model_name_valid unless model_name . match ( / ^[a-z] /i ) raise ArgumentError . new ( "Invalid model name. The model name shouldn't begin with a number." ) end end
Validates that the provided model name doesn't start with numbers
Validates that the provided model name doesn ' t start with numbers
since
None
api
None