app/models/katello/puppet_module.rb in katello-3.13.4 vs app/models/katello/puppet_module.rb in katello-3.14.0.rc1
- old
+ new
@@ -5,13 +5,10 @@
class PuppetModule < Katello::Model
include Concerns::PulpDatabaseUnit
CONTENT_TYPE = "puppet_module".freeze
- has_many :repository_puppet_modules, :class_name => "Katello::RepositoryPuppetModule", :dependent => :destroy, :inverse_of => :puppet_module
- has_many :repositories, :through => :repository_puppet_modules, :class_name => "Katello::Repository"
-
has_many :content_view_puppet_environment_puppet_modules,
:class_name => "Katello::ContentViewPuppetEnvironmentPuppetModule",
:dependent => :destroy,
:inverse_of => :puppet_module
has_many :content_view_puppet_environments,
@@ -31,13 +28,9 @@
before_save :set_sortable_version
def self.latest_module(name, author, repositories)
in_repositories(repositories).where(:name => name, :author => author).
order(:sortable_version => :desc).first
- end
-
- def self.repository_association_class
- RepositoryPuppetModule
end
def self.parse_metadata(filepath)
metadata = nil