Sha256: 71397db81072c5f654f0b4a4d002b42f6696a694459286723f23e4db7443fb4e

Contents?: true

Size: 461 Bytes

Versions: 1

Compression:

Stored size: 461 Bytes

Contents

module Plutonium
  module Helpers
    module ApplicationHelper
      # def tooltip(text)
      #   text = sanitize text
      #   "title=\"#{text}\" data-controller=\"tooltip\" data-bs-title=\"#{text}\"".html_safe
      # end

      def resource_name(resource_class, count = 1)
        resource_class.model_name.human.pluralize(count)
      end

      def resource_name_plural(resource_class)
        resource_name resource_class, 2
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
plutonium-0.8.0 lib/plutonium/helpers/application_helper.rb