Sha256: 0d091d1920a85d0d5da1ae2b9c604937e61facaf5f02e532e52007824c465ab4
Contents?: true
Size: 325 Bytes
Versions: 1
Compression:
Stored size: 325 Bytes
Contents
module SedgeCms require 'find' require 'git' class SedgeApi::LayoutsController < SedgeCms::ApplicationController def index puts 'layouts'.red sedge_path = Rails.root.join('app', 'alchemy', 'layouts') paths = directory_hash(sedge_path) render :json => paths[:items].to_json end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
sedge_cms-0.0.1 | app/controllers/sedge/sedge_api/layouts_controller.rb |