Class level cache for to_partial_path.
[Source]
# File lib/sequel/plugins/active_model.rb, line 41 41: def _to_partial_path 42: @_to_partial_path ||= "#{underscore(pluralize(to_s))}/#{underscore(demodulize(to_s))}".freeze 43: end
Cache model_name and to_partial path value before freezing.
# File lib/sequel/plugins/active_model.rb, line 33 33: def freeze 34: model_name 35: _to_partial_path 36: 37: super 38: end
[Validate]