Define respond_to? on DataStore. Fixes #872.
This commit is contained in:
parent
1623a99f81
commit
53c4413cc3
|
@ -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]
|
||||
|
|
Loading…
Reference in a new issue