Define respond_to? on DataStore. Fixes #872.

This commit is contained in:
Ben Hollis 2013-04-30 18:27:19 -07:00
parent 1623a99f81
commit 53c4413cc3

View file

@ -177,6 +177,11 @@ module Middleman
super
end
# Needed so that method_missing makes sense
def respond_to?(method, include_private = false)
super || @local_data.has_key?(method.to_s) || !!(data_for_path(method))
end
# Convert all the data into a static hash
#
# @return [Hash]