Sha256: 63c1b3c2c1ffbfb515ebe334acaaf9c8edfba8aa3a59fc4bca2842229922330e
Contents?: true
Size: 1.15 KB
Versions: 7
Compression:
Stored size: 1.15 KB
Contents
module Katello class ContentViewVersionExportHistory < Katello::Model include Authorization::ContentViewVersionExportHistory belongs_to :content_view_version, :class_name => "Katello::ContentViewVersion", :inverse_of => :export_histories validates_lengths_from_database validates :content_view_version_id, :presence => true validates :destination_server, :presence => true, :uniqueness => { :scope => [:content_view_version_id, :destination_server, :path] } scope :with_organization_id, ->(organization_id) do where(:content_view_version_id => ContentViewVersion.with_organization_id(organization_id)) end scope :with_content_view_id, ->(cv_id) do where(:content_view_version_id => ContentViewVersion.where(content_view_id: cv_id)) end scoped_search :on => :content_view_id, :relation => :content_view_version, :validator => ScopedSearch::Validators::INTEGER, :only_explicit => true scoped_search :on => :content_view_version_id, :only_explicit => true, :validator => ScopedSearch::Validators::INTEGER scoped_search :on => :id, :only_explicit => true, :validator => ScopedSearch::Validators::INTEGER end end
Version data entries
7 entries across 7 versions & 1 rubygems