Sha256: a1de8e3201d7cb0639b1ee1b45355a129335da0cf233c9549e303ac2b38db63f

Contents?: true

Size: 885 Bytes

Versions: 5

Compression:

Stored size: 885 Bytes

Contents

module Refinery
  module Pods
    class Engine < Rails::Engine
      include Refinery::Engine
      isolate_namespace Refinery::Pods

      engine_name :refinery_pods

      initializer "register refinerycms_pods plugin" do
        Refinery::Plugin.register do |plugin|
          plugin.name = "pods"
          plugin.url = proc { Refinery::Core::Engine.routes.url_helpers.pods_admin_pods_path }
          plugin.pathname = root
          plugin.activity = {
            :class_name => :'refinery/pods/pod',
            :title => 'name'
          }
          
        end
      end

      config.to_prepare do
        require 'refinery/pods/extensions/page'
        Refinery::Page.send :include, Refinery::Pods::Extensions::Page
      end

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

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
refinerycms-pods-2.1.1 lib/refinery/pods/engine.rb
refinerycms-pods-2.1.0 lib/refinery/pods/engine.rb
refinerycms-pods-2.0.3 lib/refinery/pods/engine.rb
refinerycms-pods-2.0.2 lib/refinery/pods/engine.rb
refinerycms-pods-2.0.1 lib/refinery/pods/engine.rb