Sha256: ebaa1db855c47cd25a842d729798ce4ba89763d8159811188796f6ab24abf4cf
Contents?: true
Size: 705 Bytes
Versions: 2
Compression:
Stored size: 705 Bytes
Contents
require 'active_copy/attributes' require 'active_copy/base' require 'active_copy/markdown' require 'active_copy/template' require 'active_copy/view_helper' require 'active_copy/version' # ActiveCopy reads Markdown files in +app/documents+ instead of a # database for your Rails models. Inspired by Jekyll, it uses compatible # YAML front matter to set up the metadata for each page, then renders its # content using +ActionView+. In production, +Rake+ tasks are provided to # precompile the Markdown files to pure HTML for performance purposes. module ActiveCopy def self.content_path @content_path = if ENV['RAILS_ENV'] == 'test' 'spec/fixtures' else 'app/views' end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
active_copy-1.0.0 | lib/active_copy.rb |
active_copy-1.0.0.pre | lib/active_copy.rb |