13 lines
258 B
Ruby
13 lines
258 B
Ruby
module Main
|
|
class BlocksController < Volt::ModelController
|
|
|
|
def initialize *args
|
|
super(*args)
|
|
blocks = BlocksModel.new
|
|
page._blocks = blocks
|
|
@volt_app.interpreter.register_event(:instruction_changed, blocks)
|
|
end
|
|
|
|
end
|
|
end
|