Sha256: 626f6d6aaba5dddc265bcb183fc9e923e8926918133ffc2bdcc559f833dc0aeb
Contents?: true
Size: 642 Bytes
Versions: 67
Compression:
Stored size: 642 Bytes
Contents
module Katello class ContentViewVersionComparePresenter def initialize(content_item, content_view_versions, repository) @item = content_item @versions = content_view_versions @repository = repository end def comparison item_repos = @item.repositories item_repos.where(:library_instance_id => @repository.id) if @repository item_repos.map(&:content_view_version_id) & @versions.map(&:id) end def respond_to?(method) return method.to_s == 'comparison' || @item.respond_to?(method) end def method_missing(*args, &block) @item.send(*args, &block) end end end
Version data entries
67 entries across 67 versions & 1 rubygems