method

to_missing_attachable_partial_path

Importance_1
v7.1.3.4 - Show latest stable - 0 notes - Class: Attachable
to_missing_attachable_partial_path() public

Returns the path to the partial that is used for rendering missing attachables. Defaults to “action_text/attachables/missing_attachable”.

Override to render a different partial:

class User < ApplicationRecord
  def self.to_missing_attachable_partial_path
    "users/missing_attachable"
  end
end
Show source
Register or log in to add new notes.