Sha256: 47620f2d1f8dcb25a4ae8065e4b4eb659e39ef9d2d1367f9678b71c35b64b545
Contents?: true
Size: 589 Bytes
Versions: 28
Compression:
Stored size: 589 Bytes
Contents
module Flutie class StyleguidesController < ApplicationController unloadable def show @styleguides = styleguides render :layout => "flutie" if params[:flutie] == "true" end private def styleguides all_styleguide_partials = ActionController::Base.view_paths.map do |view_path| styleguide_path = File.join(view_path.to_s, 'styleguides') if File.exists?(styleguide_path) Dir.glob(styleguide_path + '/_*.*') else nil end end all_styleguide_partials.flatten.compact end end end
Version data entries
28 entries across 28 versions & 2 rubygems