Method: ContentfulMiddleman::Core#initialize

Defined in:
lib/contentful_middleman/core.rb

#initialize(app, options_hash = {}, &block) ⇒ Core

Returns a new instance of Core.



53
54
55
56
57
58
59
60
61
# File 'lib/contentful_middleman/core.rb', line 53

def initialize(app, options_hash = {}, &block)
  super
  @middleman_app = app

  this = self # Hack due to context change
  app.before_server do
    this.webhook_options
  end
end