fixed tests
This commit is contained in:
@@ -67,11 +67,11 @@ class Artist < ActiveRecord::Base
|
||||
end
|
||||
|
||||
def other_names_array
|
||||
other_names.split(/ /)
|
||||
other_names.try(:split, / /)
|
||||
end
|
||||
|
||||
def other_names_comma
|
||||
other_names_array.join(", ")
|
||||
other_names_array.try(:join, ", ")
|
||||
end
|
||||
|
||||
def other_names_comma=(string)
|
||||
|
||||
@@ -339,7 +339,7 @@ class Tag < ActiveRecord::Base
|
||||
module RelationMethods
|
||||
def update_related
|
||||
return unless should_update_related?
|
||||
CurrentUser.scoped(User.find(1), "127.0.0.1") do
|
||||
CurrentUser.scoped(User.first, "127.0.0.1") do
|
||||
self.related_tags = RelatedTagCalculator.calculate_from_sample_to_array(name).join(" ")
|
||||
end
|
||||
self.related_tags_updated_at = Time.now
|
||||
|
||||
Reference in New Issue
Block a user