Sha256: 7dc4656d4070d740972c147c8a1fa6beaa9a4a1bc0a3ee69fbe49e51c6fe14eb

Contents?: true

Size: 760 Bytes

Versions: 5

Compression:

Stored size: 760 Bytes

Contents

module Homeland::Site
  class Engine < ::Rails::Engine
    isolate_namespace Homeland::Site

    initializer 'homeland.site.init' do |app|
      next unless Setting.has_module?(:site)
      Homeland.register_plugin do |plugin|
        plugin.name = Homeland::Site::NAME
        plugin.display_name = '酷站'
        plugin.version = Homeland::Site::VERSION
        plugin.description = Homeland::Site::DESCRIPTION
        plugin.navbar_link = true
        plugin.admin_navbar_link = true
        plugin.root_path = "/sites"
        plugin.admin_path = "/admin/sites"
      end

      app.routes.prepend do
        mount Homeland::Site::Engine => '/'
      end
      app.config.paths["db/migrate"].concat(config.paths["db/migrate"].expanded)
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
homeland-site-0.2.1 lib/homeland/site/engine.rb
homeland-site-0.2.0 lib/homeland/site/engine.rb
homeland-site-0.1.2 lib/homeland/site/engine.rb
homeland-site-0.1.1 lib/homeland/site/engine.rb
homeland-site-0.1.0 lib/homeland/site/engine.rb