Minor refactor when attempt to discover a map input
This commit is contained in:
parent
9ba17e159a
commit
b6c73d001f
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue