Sha256: cd0e18e49b9e8ec58a8f415b9e251f3ecbc4e8ab5c22fca6a5ce3d43057981b3
Contents?: true
Size: 1.11 KB
Versions: 1
Compression:
Stored size: 1.11 KB
Contents
require 'nokogiri' 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::Runtime, ::ActionDispatch::Static, "#{root}/public" end ActiveSupport.on_load(:active_record) do include Knitkit::Extensions::ActiveRecord::ActsAsPublishable include Knitkit::Extensions::ActiveRecord::ThemeSupport::HasManyThemes include Knitkit::Extensions::ActiveRecord::ActsAsDocument include Knitkit::Extensions::ActiveRecord::ActsAsCommentable end ActiveSupport.on_load(:action_controller) do include Knitkit::Extensions::ActionController::ThemeSupport::ActsAsThemedController end ActiveSupport.on_load(:action_mailer) do include Knitkit::Extensions::ActionMailer::ThemeSupport::ActsAsThemedMailer end ErpBaseErpSvcs.register_as_compass_ae_engine(config, self) ::ErpApp::Widgets::Loader.load_compass_ae_widgets(config, self) end#Engine end#Knitkit
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
knitkit-3.0.0 | lib/knitkit/engine.rb |