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

Version Path
katello-3.8.1 app/presenters/katello/content_view_version_compare_presenter.rb
katello-3.7.1.1 app/presenters/katello/content_view_version_compare_presenter.rb
katello-3.7.1 app/presenters/katello/content_view_version_compare_presenter.rb
katello-3.8.0 app/presenters/katello/content_view_version_compare_presenter.rb
katello-3.8.0.rc3 app/presenters/katello/content_view_version_compare_presenter.rb
katello-3.8.0.rc2 app/presenters/katello/content_view_version_compare_presenter.rb
katello-3.7.0 app/presenters/katello/content_view_version_compare_presenter.rb
katello-3.8.0.rc1 app/presenters/katello/content_view_version_compare_presenter.rb
katello-3.7.0.rc2 app/presenters/katello/content_view_version_compare_presenter.rb
katello-3.7.0.rc1 app/presenters/katello/content_view_version_compare_presenter.rb
katello-3.5.2 app/presenters/katello/content_view_version_compare_presenter.rb
katello-3.6.0 app/presenters/katello/content_view_version_compare_presenter.rb
katello-3.6.0.1.rc2 app/presenters/katello/content_view_version_compare_presenter.rb
katello-3.6.0.rc2 app/presenters/katello/content_view_version_compare_presenter.rb
katello-3.6.0.rc1 app/presenters/katello/content_view_version_compare_presenter.rb
katello-3.5.1.1 app/presenters/katello/content_view_version_compare_presenter.rb
katello-3.5.1 app/presenters/katello/content_view_version_compare_presenter.rb
katello-3.5.0.1 app/presenters/katello/content_view_version_compare_presenter.rb
katello-3.5.0 app/presenters/katello/content_view_version_compare_presenter.rb
katello-3.5.0.rc2 app/presenters/katello/content_view_version_compare_presenter.rb