Minor refactor when attempt to discover a map input

This commit is contained in:
Carlos Antonio da Silva 2012-11-07 11:43:02 -02:00
parent 9ba17e159a
commit b6c73d001f
1 changed files with 1 additions and 1 deletions

View File

@ -472,7 +472,7 @@ module SimpleForm
begin
at.const_get(mapping)
rescue NameError => e
e.message =~ /#{mapping}$/ ? nil : raise
raise if e.message !~ /#{mapping}$/
end
end
end