Skip to content
Browse files

some refactoring

  • Loading branch information...
1 parent dc8c0dc commit 02ab9ae68a0dc841f23d4f13db8caa1f3058f2df @nashby committed
Showing with 1 addition and 5 deletions.
  1. +1 −5 lib/simple_form/components/errors.rb
View
6 lib/simple_form/components/errors.rb
@@ -12,11 +12,7 @@ def has_errors?
protected
def error_text
- if options[:error_prefix]
- options[:error_prefix] + " " + errors.send(error_method)
- else
- errors.send(error_method)
- end
+ "#{options[:error_prefix]} #{errors.send(error_method)}".lstrip
end
def error_method

0 comments on commit 02ab9ae

Please sign in to comment.
Something went wrong with that request. Please try again.