Permalink
Browse files

[ContentParser] Исправлена ошибка парсинга.

  • Loading branch information...
1 parent 67fad6e commit 4431d25dd239f5317065816a7f86b6312574be3c @Tyralion Tyralion committed Feb 4, 2013
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/acts_as_files/content_parser.rb
@@ -22,14 +22,14 @@ def parse(content)
unless (attr = node["#{@node_attr}"]).nil?
- unless ( (replace = yield(attr)) == false )
+ if ((replace = yield(attr)) && replace.url)
node["#{@node_attr}"] = replace.url
node["width"] = "#{replace.width}"
node["height"] = "#{replace.height}"
end # unless
-
+
end # unless
} # find_all

0 comments on commit 4431d25

Please sign in to comment.