Merge pull request #37 from jeena/master
Don't crash if it's not possible to attach to property
This commit is contained in:
commit
12417d5096
1 changed files with 1 additions and 1 deletions
|
@ -102,7 +102,7 @@ module Microformats2
|
||||||
send("#{mn}=", value)
|
send("#{mn}=", value)
|
||||||
end
|
end
|
||||||
if current = send(mn.pluralize)
|
if current = send(mn.pluralize)
|
||||||
current << value
|
current << value if current.respond_to? :<<
|
||||||
else
|
else
|
||||||
send("#{mn.pluralize}=", [value])
|
send("#{mn.pluralize}=", [value])
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue