1
0
Fork 0
mirror of https://github.com/middleman/middleman.git synced 2022-11-09 12:20:27 -05:00
middleman--middleman/middleman-core/fixtures/v4-extension-callbacks/config.rb

26 lines
No EOL
513 B
Ruby

class ExtensionOne < ::Middleman::Extension
def initialize(app, options_hash={})
super
after_extension_activated :extension_two do
app.set :extension_two_was_activated, true
end
end
end
ExtensionOne.register
class ExtensionTwo < ::Middleman::Extension
def initialize(app, options_hash={})
super
after_extension_activated :extension_one do
app.set :extension_one_was_activated, true
end
end
end
ExtensionTwo.register
activate :extension_one
activate :extension_two