Sha256: f446ace953ef2ffcb385e7306a7a4dd1c3cd3e35af0db51ad85e48c45e8e2e41

Contents?: true

Size: 276 Bytes

Versions: 5

Compression:

Stored size: 276 Bytes

Contents

require "pagy/extras/bootstrap"

module Admin::ApplicationHelper
  include Pagy::Frontend

  def title
    content_for(:title) || Rails.application.class.to_s.split("::").first
  end

  def active_nav_item(*names)
    names.include?(controller_path) ? "active" : ""
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
administration-zero-1.0.6 lib/generators/admin/install/templates/helpers/admin/application_helper.rb
administration-zero-1.0.5 lib/generators/admin/install/templates/helpers/admin/application_helper.rb
administration-zero-1.0.4 lib/generators/admin/install/templates/helpers/admin/application_helper.rb
administration-zero-1.0.3 lib/generators/admin/install/templates/helpers/admin/application_helper.rb
administration-zero-1.0.2 lib/generators/admin/install/templates/helpers/admin/application_helper.rb