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.15.0.rc2 app/models/katello/proxy_association_owner.rb
katello-4.15.0.rc1 app/models/katello/proxy_association_owner.rb
katello-4.14.1 app/models/katello/proxy_association_owner.rb
katello-4.14.0 app/models/katello/proxy_association_owner.rb
katello-4.14.0.rc3 app/models/katello/proxy_association_owner.rb
katello-4.14.0.rc2 app/models/katello/proxy_association_owner.rb
katello-4.14.0.rc1.1 app/models/katello/proxy_association_owner.rb
katello-4.14.0.rc1 app/models/katello/proxy_association_owner.rb
katello-4.13.1 app/models/katello/proxy_association_owner.rb
katello-4.13.0 app/models/katello/proxy_association_owner.rb
katello-4.12.1 app/models/katello/proxy_association_owner.rb
katello-4.13.0.rc1 app/models/katello/proxy_association_owner.rb
katello-4.12.0 app/models/katello/proxy_association_owner.rb
katello-4.12.0.rc3 app/models/katello/proxy_association_owner.rb
katello-4.12.0.rc2 app/models/katello/proxy_association_owner.rb
katello-4.12.0.rc1 app/models/katello/proxy_association_owner.rb
katello-4.11.1 app/models/katello/proxy_association_owner.rb
katello-4.11.0 app/models/katello/proxy_association_owner.rb
katello-4.11.0.rc2 app/models/katello/proxy_association_owner.rb
katello-4.11.0.rc1 app/models/katello/proxy_association_owner.rb