Sha256: a646e381ed0803fb46ff08a702d414444d6ae5c96818779499037348299095f2
Contents?: true
Size: 1.11 KB
Versions: 1
Compression:
Stored size: 1.11 KB
Contents
module Comatose # DEPRECATED # Loads extensions from RAILS_ROOT/lib/comatose/*.rb def self.load_extensions Dir[File.join(RAILS_ROOT, 'lib', 'comatose', '*.rb')].each do |path| require "comatose/#{File.basename(path)}" end end end require 'acts_as_versioned' require 'redcloth' unless defined?(RedCloth) require 'liquid' unless defined?(Liquid) require 'support/class_options' require 'text_filters' require 'comatose/configuration' require 'comatose/comatose_drop' require 'comatose/processing_context' require 'comatose/page_wrapper' require 'comatose/version' require 'support/inline_rendering' require 'support/route_mapper' require 'dispatcher' unless defined?(::Dispatcher) ::Dispatcher.to_prepare :comatose do Comatose.config.after_setup.call end module Comatose def self.create_root_page(options ={}) unless ComatosePage.root page = ComatosePage.create({:title=>'root page', :body=>"Welcome to comatose", :author=>'System', :parent_id=>nil}.merge(options)) page.save(false) else raise "There exists a comatose root page, cant create another one" end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
aslakjo-comatose-2.0.5.3 | lib/comatose.rb |