aboutsummaryrefslogtreecommitdiffstats
path: root/vendor/extensions/gallery_links/lib/refinery/gallery_links/engine.rb
blob: 9f1b713728f68c8680b256f2aae5e2ed19ab1f0e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
module Refinery
  module GalleryLinks
    class Engine < Rails::Engine
      extend Refinery::Engine
      isolate_namespace Refinery::GalleryLinks

      engine_name :refinery_gallery_links

      before_inclusion do
        Refinery::Plugin.register do |plugin|
          plugin.name = "gallery_links"
          plugin.url = proc { Refinery::Core::Engine.routes.url_helpers.gallery_links_admin_gallery_links_path }
          plugin.pathname = root
          plugin.activity = {
            :class_name => :'refinery/gallery_links/gallery_link'
          }
          
        end
      end

      config.after_initialize do
        Refinery.register_extension(Refinery::GalleryLinks)
      end
    end
  end
end