Sha256: 1ef788365539b6a7bff8eaf657f3b605a22c4126c3f263f25bbe805f2c6f3401
Contents?: true
Size: 683 Bytes
Versions: 4
Compression:
Stored size: 683 Bytes
Contents
module Homeland::Note class Engine < ::Rails::Engine isolate_namespace Homeland::Note initializer 'homeland.note.init' do |app| next unless Setting.has_module?(:note) Homeland.register_plugin do |plugin| plugin.name = Homeland::Note::NAME plugin.display_name = '记事本' plugin.version = Homeland::Note::VERSION plugin.description = Homeland::Note::DESCRIPTION plugin.user_menu_link = true plugin.root_path = "/notes" end app.routes.prepend do mount Homeland::Note::Engine => '/' end app.config.paths["db/migrate"].concat(config.paths["db/migrate"].expanded) end end end
Version data entries
4 entries across 4 versions & 1 rubygems