aboutsummaryrefslogtreecommitdiffstats
path: root/test/dummy/app/models
diff options
context:
space:
mode:
authorJavan Makhmali <javan@javan.us>2018-10-03 15:05:16 -0400
committerJavan Makhmali <javan@javan.us>2018-10-03 15:06:49 -0400
commit6a77309d66b04220321e12873a083110e47840e7 (patch)
treebe765e08733047c999ddeb5995891befa2ee5ea5 /test/dummy/app/models
parent30443121286c3bb970d4d24bf7f24472498e9633 (diff)
downloadrails-6a77309d66b04220321e12873a083110e47840e7.tar.gz
rails-6a77309d66b04220321e12873a083110e47840e7.tar.bz2
rails-6a77309d66b04220321e12873a083110e47840e7.zip
Fix content attachment test
Diffstat (limited to 'test/dummy/app/models')
-rw-r--r--test/dummy/app/models/person.rb7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/dummy/app/models/person.rb b/test/dummy/app/models/person.rb
new file mode 100644
index 0000000000..0ded356d5b
--- /dev/null
+++ b/test/dummy/app/models/person.rb
@@ -0,0 +1,7 @@
+class Person < ApplicationRecord
+ include ActionText::Attachable
+
+ def to_trix_content_attachment_partial_path
+ "people/trix_content_attachment"
+ end
+end