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

Version Path
bullet_train-1.0.85 app/controllers/concerns/documentation_support.rb
bullet_train-1.0.83 app/controllers/concerns/documentation_support.rb
bullet_train-1.0.81 app/controllers/concerns/documentation_support.rb
bullet_train-1.0.79 app/controllers/concerns/documentation_support.rb
bullet_train-1.0.76 app/controllers/concerns/documentation_support.rb
bullet_train-1.0.75 app/controllers/concerns/documentation_support.rb
bullet_train-1.0.74 app/controllers/concerns/documentation_support.rb
bullet_train-1.0.72 app/controllers/concerns/documentation_support.rb
bullet_train-1.0.71 app/controllers/concerns/documentation_support.rb
bullet_train-1.0.70 app/controllers/concerns/documentation_support.rb
bullet_train-1.0.69 app/controllers/concerns/documentation_support.rb
bullet_train-1.0.68 app/controllers/concerns/documentation_support.rb
bullet_train-1.0.67 app/controllers/concerns/documentation_support.rb
bullet_train-1.0.66 app/controllers/concerns/documentation_support.rb
bullet_train-1.0.65 app/controllers/concerns/documentation_support.rb
bullet_train-1.0.64 app/controllers/concerns/documentation_support.rb
bullet_train-1.0.63 app/controllers/concerns/documentation_support.rb
bullet_train-1.0.62 app/controllers/concerns/documentation_support.rb
bullet_train-1.0.61 app/controllers/concerns/documentation_support.rb
bullet_train-1.0.60 app/controllers/concerns/documentation_support.rb