Skip to content
Extraits de code Groupes Projets
Valider 344990c1 rédigé par Sybil's avatar Sybil
Parcourir les fichiers

Allow to use #(%23) when filtering by channel.

parent 0bbdc1b9
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
...@@ -16,7 +16,7 @@ class Track < ActiveRecord::Base ...@@ -16,7 +16,7 @@ class Track < ActiveRecord::Base
end end
def self.with_channel(channel) def self.with_channel(channel)
self.joins(:channels).where("channels.name = ?", "##{channel}") self.joins(:channels).where("channels.name = ?", "#{channel}")
end end
def self.with_user(user) def self.with_user(user)
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Veuillez vous inscrire ou vous pour commenter