some refactoring

This commit is contained in:
Vasiliy Ermolovich 2011-12-11 19:26:41 +03:00
parent dc8c0dc374
commit 02ab9ae68a
1 changed files with 1 additions and 5 deletions

View File

@ -12,11 +12,7 @@ module SimpleForm
protected protected
def error_text def error_text
if options[:error_prefix] "#{options[:error_prefix]} #{errors.send(error_method)}".lstrip
options[:error_prefix] + " " + errors.send(error_method)
else
errors.send(error_method)
end
end end
def error_method def error_method