Skip to content
Extraits de code Groupes Projets
Sélectionner une révision Git
  • f0d7aefa20c76fa2506971b0aec5ed687ddab410
  • master par défaut protégée
  • rust-playlist-sync
  • rust
  • fix-qt-deprecated-qvariant-type
  • fix-mpris-qtwindow-race-condition
  • rust-appimage-wayland
  • windows-build-rebased
  • v2.5 protégée
  • v2.4 protégée
  • v2.3-1 protégée
  • v2.3 protégée
  • v2.2 protégée
  • v2.1 protégée
  • v2.0 protégée
  • v1.8-3 protégée
  • v1.8-2 protégée
  • v1.8-1 protégée
  • v1.8 protégée
  • v1.7 protégée
  • v1.6 protégée
  • v1.5 protégée
  • v1.4 protégée
  • v1.3 protégée
  • v1.2 protégée
  • v1.1 protégée
  • v1.0 protégée
27 résultats

lkt.template

Blame
  • track.rb 625 o
    class Track < ActiveRecord::Base
      paginates_per 51  
      #default_scope includes(:channels,:users,:tags)
    
      has_many :irc_posts
      has_many :tag_assignations
    
      has_many :tags, through: :tag_assignations
      has_many :channels, through: :irc_posts
      has_many :users, through: :irc_posts
    
      def self.with_tag(tag)
        self.joins(:tags).where("tags.name = ?", tag )
        #self.includes(:tags)
        #self.where("tag = ?", tag)
      end
    
      def self.with_channel(channel)
        self.joins(:channels).where("channels.name = ?", "##{channel}")
      end
    
      def self.with_user(user)
        self.joins(:users).where("users.name = ?", user)
      end 
    
    end