lib/frontman/data_store.rb in frontman-ssg-0.0.4 vs lib/frontman/data_store.rb in frontman-ssg-0.1.0
- old
+ new
@@ -58,12 +58,10 @@
return cached
end
# Make sure we forward the access to the data
- if @cache.respond_to?(method_name)
- return @cache.public_send(method_name, &block)
- end
+ return @cache.public_send(method_name, &block) if @cache.respond_to?(method_name)
nil
end
def respond_to_missing?(method_name, _)