Sha256: 78067b9ff5a254d2d2347d07267eb4d685d15f968fc3ab431f37b3f0942ebdd5
Contents?: true
Size: 844 Bytes
Versions: 2
Compression:
Stored size: 844 Bytes
Contents
module Refinery module Menus class Engine < ::Rails::Engine include Refinery::Engine isolate_namespace Refinery::Menus engine_name :refinery_menus after_inclusion do ::ApplicationController.send :include, Refinery::Menus::InstanceMethods end config.autoload_paths += %W( #{config.root}/lib ) initializer "register refinery_menus plugin" do Refinery::Plugin.register do |plugin| plugin.name = 'refinery_menus' plugin.url = proc { Refinery::Core::Engine.routes.url_helpers.menus_admin_menus_path } plugin.pathname = root plugin.menu_match = /refinery\/menus(\/.*)?/ #Match controller path end end config.after_initialize do Refinery.register_extension(Refinery::Menus) end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
refinerycms-menus-2.0.7 | lib/refinery/menus/engine.rb |
refinerycms-menus-2.0.6 | lib/refinery/menus/engine.rb |