Define respond_to? on DataStore. Fixes #872.
This commit is contained in:
parent
1623a99f81
commit
53c4413cc3
|
@ -177,6 +177,11 @@ module Middleman
|
||||||
super
|
super
|
||||||
end
|
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
|
# Convert all the data into a static hash
|
||||||
#
|
#
|
||||||
# @return [Hash]
|
# @return [Hash]
|
||||||
|
|
Loading…
Reference in a new issue