Module: BlockEditor

Defined in:
lib/block_editor.rb,
lib/block_editor/engine.rb,
lib/block_editor/version.rb,
lib/block_editor/instance.rb,
lib/block_editor/blocks/base.rb,
lib/block_editor/blocks/reusable.rb,
app/models/block_editor/block_list.rb,
lib/block_editor/block_list_renderer.rb,
lib/block_editor/blocks/contact_form.rb,
app/jobs/block_editor/application_job.rb,
app/models/concerns/block_editor/listable.rb,
app/models/block_editor/application_record.rb,
app/helpers/block_editor/application_helper.rb,
app/mailers/block_editor/application_mailer.rb,
app/models/block_editor/block_list_connection.rb,
app/controllers/block_editor/application_controller.rb

Defined Under Namespace

Modules: ApplicationHelper, Blocks, Listable Classes: ApplicationController, ApplicationJob, ApplicationMailer, ApplicationRecord, BlockList, BlockListConnection, BlockListRenderer, Engine, Instance

Constant Summary collapse

ROOT_PATH =
Pathname.new(File.join(__dir__, ".."))
VERSION =
'1.0.0'
@@dynamic_blocks =
['BlockEditor::Blocks::Reusable', 'BlockEditor::Blocks::ContactForm']
@@frontend_parent_controller =
'ApplicationController'

Class Method Summary collapse

Class Method Details

.webpackerObject



14
15
16
17
18
19
# File 'lib/block_editor.rb', line 14

def webpacker
  @webpacker ||= ::Webpacker::Instance.new(
    root_path: ROOT_PATH,
    config_path: ROOT_PATH.join("config/webpacker.yml")
  )
end