Fixed line detection.

This commit is contained in:
Martin Edenhofer 2016-06-30 13:37:13 +02:00
parent c8f329d9c0
commit fa051a2c75
2 changed files with 3 additions and 2 deletions

View file

@ -52,10 +52,11 @@ class Transaction::SignatureDetection
return if !user return if !user
return if !user.preferences return if !user.preferences
return if !user.preferences[:signature_detection] return if !user.preferences[:signature_detection]
article.preferences[:signature_detection] = SignatureDetection.find_signature_line_by_article( line = SignatureDetection.find_signature_line_by_article(
user, user,
article article
) )
article.preferences[:signature_detection] = line
article.save article.save
end end

View file

@ -157,7 +157,7 @@ returns
=end =end
def find_signature_line_by_article(user, article) def self.find_signature_line_by_article(user, article)
return if !user.preferences[:signature_detection] return if !user.preferences[:signature_detection]
SignatureDetection.find_signature_line( SignatureDetection.find_signature_line(
user.preferences[:signature_detection], user.preferences[:signature_detection],