lib/pages_cms/engine.rb in pages_cms-2.4.2 vs lib/pages_cms/engine.rb in pages_cms-3.0.0
- old
+ new
@@ -1,32 +1,10 @@
-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
+ initializer 'pages_cms.assets.precompile' do |app|
+ app.config.assets.precompile += %w( pages_cms/pages.js pages_cms/articles.js pages_cms.js pages_cms.css )
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
\ No newline at end of file
+end