Sha256: e4451430b5c428c0b2a7a167a0999d7d9613759e8c40d438b9c78fe85766f56a
Contents?: true
Size: 788 Bytes
Versions: 18
Compression:
Stored size: 788 Bytes
Contents
require "forwardable" module Sitepress # Configuration object for rails application. class RailsConfiguration # Store in ./app/content by default. DEFAULT_SITE_ROOT = "app/content".freeze attr_accessor :cache_resources attr_writer :site, :parent_engine def initialize # Caches sites between requests. Set to `false` for development environments. self.cache_resources = true end def parent_engine @parent_engine ||= Rails.application end def site @site ||= Site.new(root_path: default_root) end # Location of Sprockets manifest file def manifest_file_path site.assets_path.join("config/manifest.js") end private def default_root Rails.root.join(DEFAULT_SITE_ROOT) end end end
Version data entries
18 entries across 18 versions & 1 rubygems