-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathinit.rb
20 lines (17 loc) · 969 Bytes
/
init.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
require 'class_options'
require 'super_simple_cms/routing'
require 'averails'
require 'super_simple_cms/super_simple'
require 'active_record/acts/list'
require 'super_simple_cms/configuration'
require 'redcloth' unless defined?(RedCloth)
ActionController::Routing::RouteSet::Mapper.send(:include, SuperSimpleCMS::Routing)
ActiveRecord::Base.send :include, ActiveRecord::Acts::Tree
ActiveRecord::Base.class_eval { include ActiveRecord::Acts::List }
ActiveSupport::CoreExtensions::Time::Conversions::DATE_FORMATS[:setting] = '%b %d'
ActionController::Base.send(:include, SuperSimpleCms::SuperSimple)
ActionController::Base.send(:include, SuperSimpleCMS::Controllers)
ActionController::Base.send(:include, SuperSimpleCMS::Models)
ActionController::Base.append_view_path([File.join(File.dirname(__FILE__), 'lib','super_simple_cms','views')])
ActionView::Base.send(:include, SuperSimpleCMS::Helpers::NavigationHelper)
ActionView::Base.send :include, TextileEditorHelper