app/presenters/hyrax/presenter_renderer.rb in hyrax-4.0.0 vs app/presenters/hyrax/presenter_renderer.rb in hyrax-5.0.0.rc1
- old
+ new
@@ -20,16 +20,9 @@
t(:"#{model_name.param_key}.#{field}",
scope: label_scope,
default: [:"defaults.#{field}", field.to_s.humanize]).presence
end
- ##
- # @deprecated
- def fields(terms, &_block)
- Deprecation.warn("Fields is deprecated for removal in Hyrax 4.0.0. use #value and #label directly instead.")
- @view_context.safe_join(terms.map { |term| yield self, term })
- end
-
private
def render_show_field_partial(field_name, locals)
partial = find_field_partial(field_name)
@view_context.render partial, locals.merge(key: field_name, record: @presenter)