fix error case in saved search
This commit is contained in:
@@ -57,7 +57,7 @@ class SavedSearch < ActiveRecord::Base
|
|||||||
scope :labeled, lambda {|label| where("labels @> string_to_array(?, '~~~~')", label)}
|
scope :labeled, lambda {|label| where("labels @> string_to_array(?, '~~~~')", label)}
|
||||||
|
|
||||||
def self.normalize_label(label)
|
def self.normalize_label(label)
|
||||||
label.strip.downcase.gsub(/[[:space:]]/, "_")
|
label.to_s.strip.downcase.gsub(/[[:space:]]/, "_")
|
||||||
end
|
end
|
||||||
|
|
||||||
def self.labels_for(user_id)
|
def self.labels_for(user_id)
|
||||||
|
|||||||
Reference in New Issue
Block a user