Sha256: f2b0deea07ce77830715cc80a4651194b38871fda9636690884165928c424c48
Contents?: true
Size: 1.7 KB
Versions: 5
Compression:
Stored size: 1.7 KB
Contents
require 'locomotive/dependencies' require 'locomotive' $:.unshift File.dirname(__FILE__) # TODO: not sure about that, looks pretty useless module Locomotive class Engine < Rails::Engine isolate_namespace Locomotive paths['mongodb/migrate'] = 'mongodb/migrate' # config.autoload_once_paths += %W( #{config.root}/app/controllers #{config.root}/app/models #{config.root}/app/helpers #{config.root}/app/uploaders) initializer 'locomotive.cells' do |app| Cell::Base.prepend_view_path("#{config.root}/app/cells") end initializer 'locomotive.action_controller' do |app| ::ActionController::Base.wrap_parameters format: [:json] end initializer 'locomotive.devise' do |app| ::DeviseController.respond_to :html, :json end initializer "locomotive.precompile.hook", group: :all do |app| app.config.assets.precompile += %w( locomotive.js locomotive.css locomotive/inline_editor.js locomotive/inline_editor.css locomotive/not_logged_in.js locomotive/not_logged_in.css locomotive/aloha.js tinymce/plugins/jqueryinlinepopups/editor_plugin.js tinymce/plugins/locomotive_media/*.js tinymce/plugins/locomotive_media/langs/*.js tinymce/themes/advanced/skins/locomotive/*.css aloha/plugins/custom/locomotive_media/**/*.js aloha/plugins/custom/locomotive_media/**/*.css) # Uncomment the lines below to view the names of assets as they are # precompiled for the rails asset pipeline # def compile_asset?(path) # puts "Compiling: #{path}" # true # end #app.config.assets.precompile = [ method(:compile_asset?).to_proc ] end end end
Version data entries
5 entries across 5 versions & 1 rubygems