Included modules
- ::ActiveModel::Naming
Public Instance methods
_to_partial_path()
Class level cache for to_partial_path.
[show source]
# File lib/sequel/plugins/active_model.rb 43 def _to_partial_path 44 @_to_partial_path ||= "#{underscore(pluralize(to_s))}/#{underscore(demodulize(to_s))}".freeze 45 end
freeze()
Cache model_name and to_partial path value before freezing.
[show source]
# File lib/sequel/plugins/active_model.rb 35 def freeze 36 model_name 37 _to_partial_path 38 39 super 40 end