aboutsummaryrefslogtreecommitdiffstats
path: root/actiontext/app
diff options
context:
space:
mode:
authorcolorbox <colorbox222@gmail.com>2019-01-24 17:44:35 +0900
committercolorbox <colorbox222@gmail.com>2019-01-24 17:44:35 +0900
commit91fc859016ceabcb67462dadc05c2853d33eaf02 (patch)
tree7a0e1598aed7bec81c51b81d3951c514c0e9867a /actiontext/app
parentc91c71fa154951bde42839b26c9d0f9dd3005fd9 (diff)
downloadrails-91fc859016ceabcb67462dadc05c2853d33eaf02.tar.gz
rails-91fc859016ceabcb67462dadc05c2853d33eaf02.tar.bz2
rails-91fc859016ceabcb67462dadc05c2853d33eaf02.zip
Fix document formatting on Action Text docs [ci skip]
Use `+` instead of backquote.
Diffstat (limited to 'actiontext/app')
-rw-r--r--actiontext/app/helpers/action_text/tag_helper.rb4
-rw-r--r--actiontext/app/models/action_text/rich_text.rb4
2 files changed, 4 insertions, 4 deletions
diff --git a/actiontext/app/helpers/action_text/tag_helper.rb b/actiontext/app/helpers/action_text/tag_helper.rb
index 837b2264b1..8434f2c611 100644
--- a/actiontext/app/helpers/action_text/tag_helper.rb
+++ b/actiontext/app/helpers/action_text/tag_helper.rb
@@ -4,7 +4,7 @@ module ActionText
module TagHelper
cattr_accessor(:id, instance_accessor: false) { 0 }
- # Returns a `trix-editor` tag that instantiates the Trix JavaScript editor as well as a hidden field
+ # Returns a +trix-editor+ tag that instantiates the Trix JavaScript editor as well as a hidden field
# that Trix will write to on changes, so the content will be sent on form submissions.
#
# ==== Options
@@ -50,7 +50,7 @@ module ActionView::Helpers
end
module FormHelper
- # Returns a `trix-editor` tag that instantiates the Trix JavaScript editor as well as a hidden field
+ # Returns a +trix-editor+ tag that instantiates the Trix JavaScript editor as well as a hidden field
# that Trix will write to on changes, so the content will be sent on form submissions.
#
# ==== Options
diff --git a/actiontext/app/models/action_text/rich_text.rb b/actiontext/app/models/action_text/rich_text.rb
index 705dd30983..1f39bc51b9 100644
--- a/actiontext/app/models/action_text/rich_text.rb
+++ b/actiontext/app/models/action_text/rich_text.rb
@@ -1,10 +1,10 @@
# frozen_string_literal: true
module ActionText
- # The RichText record holds the content produced by the Trix editor in a serialized `body` attribute.
+ # The RichText record holds the content produced by the Trix editor in a serialized +body+ attribute.
# It also holds all the references to the embedded files, which are stored using Active Storage.
# This record is then associated with the Active Record model the application desires to have
- # rich text content using the `has_rich_text` class method.
+ # rich text content using the +has_rich_text+ class method.
class RichText < ActiveRecord::Base
self.table_name = "action_text_rich_texts"