Skip to content

Commit 78261e5

Browse files
committed
Fix author cleanup
1 parent 867192a commit 78261e5

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

app/models/author.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ def abbreviated_name
3737
end
3838

3939
def standard_name?
40-
family == self.class.standardized_family(family) &&
41-
given == self.class.standardized_given(given)
40+
family == self.class.standardize_family(family) &&
41+
given == self.class.standardize_given(given)
4242
end
4343
end

lib/tasks/clean_authors.rake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ namespace :authors do
33
task :clean => :environment do |t, args|
44
km = 0
55
ks = 0
6-
Author.each do |author|
6+
Author.all.each do |author|
77
next if author.standard_name?
88

99
par = {

0 commit comments

Comments
 (0)