require 'refinerycms-inquiries'

module Refinery
  module Inquiries
    class Engine < Rails::Engine
      include Refinery::Engine

      isolate_namespace Refinery
      engine_name :refinery_inquiries

      initializer "register refinerycms_inquiries plugin", :after => :set_routes_reloader do |app|
        Refinery::Plugin.register do |plugin|
          plugin.pathname = root
          plugin.name = "refinery_inquiries"
          plugin.url = app.routes.url_helpers.refinery_admin_inquiries_path
          plugin.menu_match = %r{refinery/inquir(ies|y_settings)(/.+?)?$}
          plugin.activity = {
            :class_name => :'refinery/inquiry',
            :title => 'name',
            :url_prefix => nil
          }
        end
      end

      config.after_initialize do
        Refinery.register_engine(Refinery::Inquiries)
      end
    end
  end
end

require 'refinerycms-inquiries'

module Refinery
  module Inquiries
    class Engine < Rails::Engine
      include Refinery::Engine

      isolate_namespace Refinery
      engine_name :refinery_inquiries

      initializer "register refinerycms_inquiries plugin", :after => :set_routes_reloader do |app|
        Refinery::Plugin.register do |plugin|
          plugin.pathname = root
          plugin.name = "refinery_inquiries"
          plugin.url = app.routes.url_helpers.refinery_admin_inquiries_path
          plugin.menu_match = %r{refinery/inquir(ies|y_settings)(/.+?)?$}
          plugin.activity = {
            :class_name => :'refinery/inquiry',
            :title => 'name',
            :url_prefix => nil,
            :url => 'refinery_admin_inquiries_path'
          }
        end
      end

      config.after_initialize do
        Refinery.register_engine(Refinery::Inquiries)
      end
    end
  end
end

Fix dashboard in recent versions of Refinery CMS that expect proper namespacing.
Fix dashboard in recent versions of Refinery CMS that expect proper namespacing.
