From 538d2e0ebca24bb8021a44ac74cdcaa234a8c834 Mon Sep 17 00:00:00 2001 From: Thomas Reynolds Date: Mon, 29 Aug 2011 11:30:55 -0700 Subject: [PATCH] Require json explicitly to .to_json works everywhere --- lib/middleman/base.rb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/middleman/base.rb b/lib/middleman/base.rb index 3ba60936..5e11a794 100644 --- a/lib/middleman/base.rb +++ b/lib/middleman/base.rb @@ -1,6 +1,10 @@ module Middleman::Base class << self def registered(app) + # Explicitly require json support + require "active_support" + require "active_support/json" + app.extend ClassMethods app.send :include, InstanceMethods