Require json explicitly to .to_json works everywhere
This commit is contained in:
parent
670fef2c52
commit
538d2e0ebc
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue