Method: ContentfulMiddleman::Core#initialize

Defined in:
lib/contentful_middleman/core.rb

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

Returns a new instance of Core.



71
72
73
74
75
76
77
78
79
# File 'lib/contentful_middleman/core.rb', line 71

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