Sha256: 180057eea941e74a51e22c24152be2b78b0a1d790cb3ae2986dbbfffecea08fa

Contents?: true

Size: 267 Bytes

Versions: 11

Compression:

Stored size: 267 Bytes

Contents

class Visualization < ActiveRecord::Base
  belongs_to :query_version
  has_one :query, through: :query_version
  has_many :query_roles, through: :query

  scope :with_role, ->(role) { references(:query).includes(:query_roles).where(query_roles: { role: role }) }
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
aleph_analytics-0.4.9.pre.dev app/models/visualization.rb
aleph_analytics-0.4.8 app/models/visualization.rb
aleph_analytics-0.4.7 app/models/visualization.rb
aleph_analytics-0.4.4 app/models/visualization.rb
aleph_analytics-0.4.2 app/models/visualization.rb
aleph_analytics-0.4.1 app/models/visualization.rb
aleph_analytics-0.3.0 app/models/visualization.rb
aleph_analytics-0.2.0 app/models/visualization.rb
aleph_analytics-0.1.0 app/models/visualization.rb
aleph_analytics-0.0.6 app/models/visualization.rb
aleph_analytics-0.0.5 app/models/visualization.rb