lib/brief/document.rb in brief-1.9.7 vs lib/brief/document.rb in brief-1.9.8
- old
+ new
@@ -125,11 +125,11 @@
self
end
def briefcase
- (@briefcase_root && Brief.cases[@briefcase_root]) || Brief.case
+ (@briefcase_root && Brief.cases[@briefcase_root]) || Brief.case(true)
end
def has_sections?
model_class.section_mappings.length > 0
end
@@ -263,10 +263,11 @@
model_class && model_class.models.any? do |model|
model.path == path
end
end
- def respond_to?(method)
+ def respond_to?(*args)
+ method = args.first
super || (data && data.respond_to?(method)) || (data && data.key?(method))
end
def structure
@structure_analyzer ||= Brief::Document::Structure.new(fragment, raw_content.lines.to_a)