How should I make this more Ruby-like or just better?def password_format_is_valid?(submitted_password)  #Gets regular expression for password format validation from settings and applies it  regex = Regexp.new(Setting['global_admin.password_format_regex'])  if submitted_password =~ regex then    return true  else    self.errors.add(:password, Setting['global_admin.password_format_error_message'])    return false  endend
Validating a password format
ruby;validation