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
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