Sha256: 122d0f0df5836b226291dc6ec5ff2e852d63b0d6ff904e7052f49f16fa2dcabd
Contents?: true
Size: 1.6 KB
Versions: 1
Compression:
Stored size: 1.6 KB
Contents
require 'active_record/errors' # Used for some misc configuration around the project. module Cms class << self attr_accessor :attachment_file_permission # Determines which WYSIWYG editor is the 'default' for a BrowserCMS project # # bcms modules can changes this by overriding it in their configuration. # @return [String] The single javascript file to include to load the proper WYSIWYG editor. def content_editor # CKEditor is the default. @wysiwig_editor ||= 'ckeditor' end def content_editor=(editor) @wysiwig_editor = editor end def markdown? Object.const_defined?("Markdown") end def reserved_paths @reserved_paths ||= ["/cms", "/cache"] end # User Class attr_writer :user_class_name def user_class_name @user_class_name ||= 'Cms::User' end def user_class user_class_name.to_s.constantize end # User key attr_writer :user_key_field def user_key_field @user_key_field ||= :login end # User name field attr_writer :user_name_field def user_name_field @user_name_field ||= :full_name end end module Errors class AccessDenied < StandardError def initialize super("Access Denied") end end # Indicates no content block could be found. class ContentNotFound < ActiveRecord::RecordNotFound end # Indicates that no draft version of a given piece of content exists. class DraftNotFound < ContentNotFound end end end Time::DATE_FORMATS.merge!( :year_month_day => '%Y/%m/%d', :date => '%m/%d/%Y' )
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
browsercms-artirix-4.0.0.rc1.art4 | lib/cms/configuration.rb |