Sha256: 8d53bcff545df40326e56cf8a021ffddae2ad6921674c86bc1c45da0756f489f

Contents?: true

Size: 224 Bytes

Versions: 4

Compression:

Stored size: 224 Bytes

Contents

module ForemanStatistics
  module HasManyTrends
    extend ActiveSupport::Concern

    included do
      has_many :trends, as: :trendable, class_name: 'ForemanStatistics::ForemanTrend', dependent: :destroy
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
foreman_statistics-2.1.0 app/models/concerns/foreman_statistics/has_many_trends.rb
foreman_statistics-2.0.1 app/models/concerns/foreman_statistics/has_many_trends.rb
foreman_statistics-2.0.0 app/models/concerns/foreman_statistics/has_many_trends.rb
foreman_statistics-1.2.0 app/models/concerns/foreman_statistics/has_many_trends.rb