1
0
Fork 0
mirror of https://github.com/middleman/middleman.git synced 2022-11-09 12:20:27 -05:00

Require json explicitly to .to_json works everywhere

This commit is contained in:
Thomas Reynolds 2011-08-29 11:30:55 -07:00
parent 670fef2c52
commit 538d2e0ebc

View file

@ -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