Sha256: 406a79cd4f964552c56a2e8a64674d6f8806acef3b7eee300106f67ceb2b5660

Contents?: true

Size: 292 Bytes

Versions: 246

Compression:

Stored size: 292 Bytes

Contents

module Katello
  module ProxyAssociationOwner
    def proxy_association_owner
      /(\d+)\.(\d+)\.(\d+)/ =~ Rails.version
      ((Regexp.last_match[1].to_i >= 4) || (Regexp.last_match[1].to_i == 3 && Regexp.last_match[2].to_i >= 1)) ? proxy_association.owner : proxy_owner
    end
  end
end

Version data entries

246 entries across 246 versions & 1 rubygems

Version Path
katello-4.3.1 app/models/katello/proxy_association_owner.rb
katello-4.4.0 app/models/katello/proxy_association_owner.rb
katello-4.4.0.rc2 app/models/katello/proxy_association_owner.rb
katello-4.4.0.rc1 app/models/katello/proxy_association_owner.rb
katello-4.2.2 app/models/katello/proxy_association_owner.rb
katello-4.3.0 app/models/katello/proxy_association_owner.rb
katello-4.3.0.rc4 app/models/katello/proxy_association_owner.rb
katello-4.3.0.rc3 app/models/katello/proxy_association_owner.rb
katello-4.3.0.rc2.1 app/models/katello/proxy_association_owner.rb
katello-4.3.0.rc2 app/models/katello/proxy_association_owner.rb
katello-4.3.0.rc1 app/models/katello/proxy_association_owner.rb
katello-4.2.1 app/models/katello/proxy_association_owner.rb
katello-4.2.0.1 app/models/katello/proxy_association_owner.rb
katello-4.1.4 app/models/katello/proxy_association_owner.rb
katello-4.0.3 app/models/katello/proxy_association_owner.rb
katello-4.2.0.1.rc3 app/models/katello/proxy_association_owner.rb
katello-3.18.5 app/models/katello/proxy_association_owner.rb
katello-4.2.0.1.rc2 app/models/katello/proxy_association_owner.rb
katello-4.2.0.rc2 app/models/katello/proxy_association_owner.rb
katello-4.1.3 app/models/katello/proxy_association_owner.rb