Sha256: 2aea2027e195f68fa5ab66616ce47e340ee18fac0385ae7d4d08fe27ec44dc79
Contents?: true
Size: 1.09 KB
Versions: 3
Compression:
Stored size: 1.09 KB
Contents
class LucyCMS::Configuration # Location of YAML files that can be used to render pages instead of pulling # data from the database. Not active if not specified. attr_accessor :seed_data_path attr_accessor :version attr_accessor :cms_upload_directory # Default url to access admin area is http://yourhost/cms-admin/ # You can change 'cms-admin' to 'admin', for example. attr_accessor :admin_route_prefix # /cms-admin redirects to /cms-admin/pages but you can change it # to something else attr_accessor :admin_route_redirect # Not allowing irb code to be run inside page content. True by default. attr_accessor :disable_irb # Caching for css/js. For admin layout and ones for cms content. Enabled by default. attr_accessor :enable_caching # Configuration defaults def initialize @seed_data_path = nil @version = '0.0.2' @cms_upload_directory = 'common' @admin_route_prefix = 'cms-admin' @admin_route_redirect = "/#{@admin_route_prefix}/pages" @disable_irb = true @enable_caching = true end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
lucy_cms-0.0.3 | lib/LucyCMS/configuration.rb |
lucy_cms-0.0.2 | lib/LucyCMS/configuration.rb |
lucy_cms-0.0.1 | lib/LucyCMS/configuration.rb |