Sha256: f32ceb08f025aa4770e16cb02a8bf2f31e4e1b50231ad93f22ef9dc9dd9a47d2
Contents?: true
Size: 342 Bytes
Versions: 28
Compression:
Stored size: 342 Bytes
Contents
class Post < ActiveRecord::Base acts_as_tenant belongs_to :author belongs_to :zine def self.get_team_posts( team_id ) Post.joins( {:zine => :calendar}, :author)\ .where( ["calendars.team_id = ?", team_id] )\ .where( where_restrict_tenant(Zine, Calendar, Author) )\ .order("authors.name") end end
Version data entries
28 entries across 28 versions & 1 rubygems