Module: ActiveModel::Conversion::ClassMethods
- Defined in:
- lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/activemodel-7.0.4/lib/active_model/conversion.rb
Overview
:nodoc:
Instance Method Summary collapse
-
#_to_partial_path ⇒ Object
Provide a class level cache for #to_partial_path.
Instance Method Details
#_to_partial_path ⇒ Object
Provide a class level cache for #to_partial_path. This is an internal method and should not be accessed directly.
102 103 104 105 106 107 108 |
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/activemodel-7.0.4/lib/active_model/conversion.rb', line 102 def _to_partial_path # :nodoc: @_to_partial_path ||= begin element = ActiveSupport::Inflector.underscore(ActiveSupport::Inflector.demodulize(name)) collection = ActiveSupport::Inflector.tableize(name) "#{collection}/#{element}" end end |