From 344990c1d59a19db420709e2868c8f12292bdaa0 Mon Sep 17 00:00:00 2001
From: Sybil <sybil.deboin@gmail.com>
Date: Tue, 24 Feb 2015 00:20:09 +0100
Subject: [PATCH] Allow to use #(%23) when filtering by channel.

---
 app/models/track.rb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/app/models/track.rb b/app/models/track.rb
index 36db292..9c15108 100644
--- a/app/models/track.rb
+++ b/app/models/track.rb
@@ -16,7 +16,7 @@ class Track < ActiveRecord::Base
   end
 
   def self.with_channel(channel)
-    self.joins(:channels).where("channels.name = ?", "##{channel}")
+    self.joins(:channels).where("channels.name = ?", "#{channel}")
   end
 
   def self.with_user(user)
-- 
GitLab