aboutsummaryrefslogtreecommitdiffstats
path: root/actiontext/lib/action_text/engine.rb
diff options
context:
space:
mode:
Diffstat (limited to 'actiontext/lib/action_text/engine.rb')
-rw-r--r--actiontext/lib/action_text/engine.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/actiontext/lib/action_text/engine.rb b/actiontext/lib/action_text/engine.rb
index 0c2aebfd08..0f55d460a1 100644
--- a/actiontext/lib/action_text/engine.rb
+++ b/actiontext/lib/action_text/engine.rb
@@ -25,6 +25,10 @@ module ActionText
def previewable_attachable?
representable?
end
+
+ def attachable_plain_text_representation(caption = nil)
+ "[#{caption || filename}]"
+ end
end
end