Sha256: e611a448638d3a66d7f62f995ecda7c3d423f314a5472db522e053ca0725a786

Contents?: true

Size: 616 Bytes

Versions: 8

Compression:

Stored size: 616 Bytes

Contents

require 'rails'
require "ckeditor"
require 'fullstack'

module Fullstack
  module Admin
    class Engine < ::Rails::Engine

        initializer "fullstack-admin precompile" do |app|
          app.config.assets.precompile += Ckeditor.assets
        end
        
        initializer 'fullstack.autoload', :after => :set_autoload_paths do |app|
          Ckeditor.setup do |config|
            require "ckeditor/orm/active_record"
          end
          Ckeditor::ApplicationController.class_eval do
            before_filter :authenticate_administrator!
          end
        end
                
    end
  end
end


Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
fullstack-admin-0.2.19 lib/fullstack/admin/engine.rb
fullstack-admin-0.2.18 lib/fullstack/admin/engine.rb
fullstack-admin-0.2.17 lib/fullstack/admin/engine.rb
fullstack-admin-0.2.16 lib/fullstack/admin/engine.rb
fullstack-admin-0.2.15 lib/fullstack/admin/engine.rb
fullstack-admin-0.2.14 lib/fullstack/admin/engine.rb
fullstack-admin-0.2.13 lib/fullstack/admin/engine.rb
fullstack-admin-0.2.12 lib/fullstack/admin/engine.rb