Sha256: 48a7eb3a3da75ac74aa6a98faf3340f772a363627898bfe7fb7fb8e73c2b4f8b

Contents?: true

Size: 319 Bytes

Versions: 12

Compression:

Stored size: 319 Bytes

Contents

# frozen_string_literal: true
require 'coderay'

module Bulkrax
  module ApplicationHelper
    include ::Hyrax::HyraxHelperBehavior if defined?(::Hyrax)

    def coderay(value, opts)
      CodeRay
        .scan(value, :ruby)
        .html(opts)
        .html_safe # rubocop:disable Rails/OutputSafety
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
bulkrax-5.5.1 app/helpers/bulkrax/application_helper.rb
bulkrax-5.4.2 app/helpers/bulkrax/application_helper.rb
bulkrax-5.3.1 app/helpers/bulkrax/application_helper.rb
bulkrax-6.0.1 app/helpers/bulkrax/application_helper.rb
bulkrax-6.0.0 app/helpers/bulkrax/application_helper.rb
bulkrax-5.5.0 app/helpers/bulkrax/application_helper.rb
bulkrax-5.4.1 app/helpers/bulkrax/application_helper.rb
bulkrax-5.4.0 app/helpers/bulkrax/application_helper.rb
bulkrax-5.3.0 app/helpers/bulkrax/application_helper.rb
bulkrax-5.2.1 app/helpers/bulkrax/application_helper.rb
bulkrax-5.2.0 app/helpers/bulkrax/application_helper.rb
bulkrax-5.1.0 app/helpers/bulkrax/application_helper.rb