Merge pull request #390 from nashby/some-refactoring

some refactoring
This commit is contained in:
José Valim 2011-12-11 11:08:36 -08:00
commit 6943b37d64
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