app/helpers/template_helper.rb in kindred-0.0.3 vs app/helpers/template_helper.rb in kindred-0.0.4
- old
+ new
@@ -1,14 +1,15 @@
module TemplateHelper
- def template(model: nil, collection: nil, target_uuid: nil, &block)
+ def template(model: nil, collection: nil, target_uuid: nil, meta: nil, &block)
model_name = model
@kindred_hash ||= {}
@kindred_hash.merge!({
model_name => {
template: capture(&block),
collection: collection,
target_uuid: target_uuid,
+ meta: meta
}
})
self.controller.instance_variable_set(:@kindred_hash, @kindred_hash)
return nil
end