Sha256: 9a01f57ddf48eae62b46c7d6656eede3bb5d9ccffa717ee286e7aa66ca5a442a
Contents?: true
Size: 1.1 KB
Versions: 4
Compression:
Stored size: 1.1 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 ={}) raise "Root page already exists" if ComatosePage.root root = ComatosePage.create({:title=>'root page', :body=>"Welcome to comatose", :author=>'System', :parent_id=>nil}.merge(options)) root.save(false) raise "Failed to save root page" if root.new_record? end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
aslakjo-comatose-2.0.5.12 | lib/comatose.rb |
aslakjo-comatose-2.0.5.11 | lib/comatose.rb |
aslakjo-comatose-2.0.5.10 | lib/comatose.rb |
aslakjo-comatose-2.0.5.9 | lib/comatose.rb |