app/helpers/application_helper.rb
def resource_count_stats
    klass = klass_from_controller(controller_name)
    full_total = klass.count
    if klass.authorization_supported?
      visible_total = klass.all_authorized_for("view").count
    elsif klass.kind_of?(Person) && Seek::Config.is_virtualliver && User.current_user.nil?
      visible_total = 0
    else
      visible_total = klass.count
    end
    return visible_total,full_total
  end
#returns the count of the total visible items, and also the count of the all items, according to controller_name
# primarily used for the metrics on the item index page
returns the count of the total visible items, and also the count of the all items, according to controller_name
primarily used for the metrics on the item index page
returns the count of the total visible items and also the count of the all items according to controller_name primarily used for the metrics on the item index page
def resource_count_stats
    klass = klass_from_controller(controller_name)
    full_total = klass.count
    if klass.authorization_supported?
      visible_total = klass.all_authorized_for("view").count
    elsif klass.kind_of?(Person) && Seek::Config.is_virtualliver && User.current_user.nil?
      visible_total = 0
    else
      visible_total = klass.count
    end
    return visible_total,full_total
  end
def resource_count_stats klass = klass_from_controller ( controller_name ) full_total = klass . count if klass . authorization_supported? visible_total = klass . all_authorized_for ( "view" ) . count elsif klass . kind_of? ( Person ) && Seek :: Config . is_virtualliver && User . current_user . nil? visible_total = 0 else visible_total = klass . count end return visible_total , full_total end
returns the count of the total visible items, and also the count of the all items, according to controller_name
primarily used for the metrics on the item index page
returns the count of the total visible items and also the count of the all items according to controller_name primarily used for the metrics on the item index page