require 'refinerycms-core'
require 'acts_as_indexed'

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

      engine_name :refinery_podcasts

      initializer "register refinerycms_podcasts plugin" do
        Refinery::Plugin.register do |plugin|
          plugin.name = "podcasts"
          plugin.url = proc { Refinery::Core::Engine.routes.url_helpers.podcasts_admin_podcasts_path }
          plugin.pathname = root
          plugin.activity = {
            :class_name => :'refinery/podcasts/podcast'
          }

        end
      end

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

require 'refinerycms-core'

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

      engine_name :refinery_podcasts

      initializer "register refinerycms_podcasts plugin" do
        Refinery::Plugin.register do |plugin|
          plugin.name = "podcasts"
          plugin.url = proc { Refinery::Core::Engine.routes.url_helpers.podcasts_admin_podcasts_path }
          plugin.pathname = root
          plugin.activity = {
            :class_name => :'refinery/podcasts/podcast'
          }

        end
      end

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

Allow the model to require acts_as_indexed.
Allow the model to require acts_as_indexed.
