Method: ActionText::Attachable#to_attachable_partial_path

Defined in:
actiontext/lib/action_text/attachable.rb

#to_attachable_partial_pathObject

Returns the path to the partial that is used for rendering the attachable. Defaults to to_partial_path.

Override to render a different partial:

class User < ApplicationRecord
  def to_attachable_partial_path
    "users/attachable"
  end
end


127
128
129
# File 'actiontext/lib/action_text/attachable.rb', line 127

def to_attachable_partial_path
  to_partial_path
end