Permalink
Browse files

Leere Definitionen nicht exportieren.

  • Loading branch information...
Roger Braun
Roger Braun committed May 24, 2011
1 parent 51a8433 commit eb454dab934b320a0f4d5bf3737c15d70768c59d
Showing with 1 addition and 1 deletion.
  1. BIN db/data.db
  2. +1 −1 models/definition.rb
View
Binary file not shown.
View
@@ -46,7 +46,7 @@ class Keyword
belongs_to :definition
def self.user_keywords user_email
- user_keywords = Keyword.all(Keyword.definition.user.email => user_email)
+ user_keywords = Keyword.all(Keyword.definition.user.email => user_email).reject{|el| el.definition.translation.strip == ""}
all = user_keywords.map do |key|
key.JDW + "\t" + key.keyword + "\t" +
key.reading + "\t" + key.definition.definition +

0 comments on commit eb454da

Please sign in to comment.