Sha256: e27757fe30c5e28b5e99f1d7f1f0bf899701603e6bbd26e391ea42c88d325ac7
Contents?: true
Size: 1.03 KB
Versions: 4
Compression:
Stored size: 1.03 KB
Contents
require 'nokogiri' require 'permalink_fu' require 'acts-as-taggable-on' require 'zip/zip' require 'zip/zipfilesystem' module Knitkit class Engine < Rails::Engine isolate_namespace Knitkit config.knitkit = Knitkit::Config initializer "knikit.merge_public" do |app| app.middleware.insert_before Rack::Lock, ::ActionDispatch::Static, "#{root}/public" end ActiveSupport.on_load(:active_record) do include Knitkit::Extensions::ActiveRecord::ActsAsCommentable include Knitkit::Extensions::ActiveRecord::ActsAsPublishable include Knitkit::Extensions::ActiveRecord::ThemeSupport::HasManyThemes include Knitkit::Extensions::ActiveRecord::ActsAsDocument end ActiveSupport.on_load(:action_controller) do include Knitkit::Extensions::ActionController::ThemeSupport::ActsAsThemedController end engine = self config.to_prepare do ErpBaseErpSvcs.register_compass_ae_engine(engine) ::ErpApp::Widgets::Loader.load_compass_ae_widgets(engine) end end#Engine end#Knitkit
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
knitkit-2.0.4 | lib/knitkit/engine.rb |
knitkit-2.0.3 | lib/knitkit/engine.rb |
knitkit-2.0.2 | lib/knitkit/engine.rb |
knitkit-2.0.1 | lib/knitkit/engine.rb |