lib/brief/model.rb in brief-1.1.0 vs lib/brief/model.rb in brief-1.2.0
- old
+ new
@@ -139,12 +139,20 @@
def definition=(value)
@definition
end
+ def section_mapping(*args)
+ definition.send(:section_mapping, *args)
+ end
+
+ def section_mappings(*args)
+ definition.send(:section_mappings, *args)
+ end
+
def method_missing(meth, *args, &block)
if %w(meta content actions helpers).include?(meth.to_s)
- definition.send(meth, &block)
+ definition.send(meth, *args, &block)
finalize
elsif meth.to_s.match(/^on_(.*)_change$/)
create_change_handler($1, *args, &block)
else
super