Sha256: 8e55cbd262a8e821159d905634a70d0ed2e032c74901ab10c724b69338f0f8a3
Contents?: true
Size: 294 Bytes
Versions: 62
Compression:
Stored size: 294 Bytes
Contents
module DocumentationSupport extend ActiveSupport::Concern def docs target = params[:page].presence || "index" files = `find -L tmp/gems/*/docs | grep \.md`.lines.map(&:chomp).sort @file = files.detect { |file| file.include?(target) } render :docs, layout: "docs" end end
Version data entries
62 entries across 62 versions & 1 rubygems