Sha256: 77586c8022187d94c058b32c8996ee36da3673c817a8b88630ed3da4ef53c1fb

Contents?: true

Size: 298 Bytes

Versions: 45

Compression:

Stored size: 298 Bytes

Contents

# frozen_string_literal: true
require 'coderay'

module Bulkrax
  module ApplicationHelper
    include ::Hyrax::HyraxHelperBehavior

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

Version data entries

45 entries across 45 versions & 1 rubygems

Version Path
bulkrax-4.4.2 app/helpers/bulkrax/application_helper.rb
bulkrax-4.4.1 app/helpers/bulkrax/application_helper.rb
bulkrax-4.3.1 app/helpers/bulkrax/application_helper.rb
bulkrax-5.0.0 app/helpers/bulkrax/application_helper.rb
bulkrax-4.4.0 app/helpers/bulkrax/application_helper.rb
bulkrax-4.3.0 app/helpers/bulkrax/application_helper.rb
bulkrax-4.2.1 app/helpers/bulkrax/application_helper.rb
bulkrax-4.2.0 app/helpers/bulkrax/application_helper.rb
bulkrax-4.1.1 app/helpers/bulkrax/application_helper.rb
bulkrax-4.1.0 app/helpers/bulkrax/application_helper.rb
bulkrax-4.0.0 app/helpers/bulkrax/application_helper.rb
bulkrax-3.5.1 app/helpers/bulkrax/application_helper.rb
bulkrax-3.5.0 app/helpers/bulkrax/application_helper.rb
bulkrax-3.4.0 app/helpers/bulkrax/application_helper.rb
bulkrax-3.3.2 app/helpers/bulkrax/application_helper.rb
bulkrax-3.3.1 app/helpers/bulkrax/application_helper.rb
bulkrax-3.3.0 app/helpers/bulkrax/application_helper.rb
bulkrax-3.2.0 app/helpers/bulkrax/application_helper.rb
bulkrax-3.1.2 app/helpers/bulkrax/application_helper.rb
bulkrax-3.1.1 app/helpers/bulkrax/application_helper.rb