require 'pg' require 'haml-rails' require 'jquery-rails' require 'cocoon' require 'html_truncator' require 'redcarpet' require 'carrierwave' require 'fog/aws' module PagesCms class Engine < ::Rails::Engine isolate_namespace PagesCms config.to_prepare do Dir.glob(Rails.root + "app/decorators/**/*_decorator*.rb").each do |c| require_dependency(c) end end config.assets.paths << File.expand_path("../../assets/stylesheets", __FILE__) config.assets.paths << File.expand_path("../../assets/javascripts", __FILE__) config.assets.precompile += %w( pages_cms/pages_cms.scss pages_cms/sortable.js pages_cms/advanced_and_extended.js pages_cms/wysihtml5x-toolbar.js pages_cms/select2.min.js pages_cms/select2.min.css ) end end