app/helpers/configuration_helper.rb
# Model class name comparison method that sorts provider models first
Model class name comparison method that sorts provider models first
Model class name comparison method that sorts provider models first
def compare_decorator_class(a, b)
    if a.to_s.starts_with?('ManageIQ::Providers') == b.to_s.starts_with?('ManageIQ::Providers')
      a.to_s <=> b.to_s
    elsif a.to_s.starts_with?('ManageIQ::Providers')
      -1
    elsif b.to_s.starts_with?('ManageIQ::Providers')
      1
    end
  end
def compare_decorator_class ( a , b ) if a . to_s . starts_with? ( 'ManageIQ::Providers' ) == b . to_s . starts_with? ( 'ManageIQ::Providers' ) a . to_s <=> b . to_s elsif a . to_s . starts_with? ( 'ManageIQ::Providers' ) - 1 elsif b . to_s . starts_with? ( 'ManageIQ::Providers' ) 1 end end
Model class name comparison method that sorts provider models first
Model class name comparison method that sorts provider models first
a
<not_specific>
b
<not_specific>