aboutsummaryrefslogtreecommitdiffstats
path: root/app
diff options
context:
space:
mode:
authorDavid Heinemeier Hansson <david@loudthinking.com>2018-04-13 16:23:04 -0700
committerDavid Heinemeier Hansson <david@loudthinking.com>2018-04-13 16:23:04 -0700
commitf1d74871e7f00e8bbde3501a759487ac8cc4c3fc (patch)
tree2f1fa680bd1e6a356256fdc59cab5a6af8d74da7 /app
parent3bc244abc1800c7617cbfbbe1dd2597053a638c9 (diff)
downloadrails-f1d74871e7f00e8bbde3501a759487ac8cc4c3fc.tar.gz
rails-f1d74871e7f00e8bbde3501a759487ac8cc4c3fc.tar.bz2
rails-f1d74871e7f00e8bbde3501a759487ac8cc4c3fc.zip
Rename from Active Text to Action Text
This is more like Action View than Active Model.
Diffstat (limited to 'app')
-rw-r--r--app/helpers/action_text/tag_helper.rb (renamed from app/helpers/active_text/tag_helper.rb)8
-rw-r--r--app/javascript/actiontext/attachment_upload.js (renamed from app/javascript/activetext/attachment_upload.js)0
-rw-r--r--app/javascript/actiontext/index.js (renamed from app/javascript/activetext/index.js)0
3 files changed, 4 insertions, 4 deletions
diff --git a/app/helpers/active_text/tag_helper.rb b/app/helpers/action_text/tag_helper.rb
index 1b97621dac..bd2727bca6 100644
--- a/app/helpers/active_text/tag_helper.rb
+++ b/app/helpers/action_text/tag_helper.rb
@@ -1,11 +1,11 @@
-module ActiveText
+module ActionText
module TagHelper
cattr_accessor(:id, instance_accessor: false) { 0 }
def rich_text_field_tag(name, value = nil, options = {})
options = options.symbolize_keys
- options[:input] ||= "trix_input_#{ActiveText::TagHelper.id += 1}"
+ options[:input] ||= "trix_input_#{ActionText::TagHelper.id += 1}"
options[:data] ||= {}
options[:data][:direct_upload_url] = rails_direct_uploads_url
options[:data][:blob_url_template] = rails_service_blob_url(":signed_id", ":filename")
@@ -19,7 +19,7 @@ module ActiveText
end
module ActionView::Helpers
- class Tags::ActiveText < Tags::Base
+ class Tags::ActionText < Tags::Base
delegate :dom_id, to: ActionView::RecordIdentifier
def render
@@ -36,7 +36,7 @@ module ActionView::Helpers
module FormHelper
def rich_text_field(object_name, method, options = {})
- Tags::ActiveText.new(object_name, method, self, options).render
+ Tags::ActionText.new(object_name, method, self, options).render
end
end
diff --git a/app/javascript/activetext/attachment_upload.js b/app/javascript/actiontext/attachment_upload.js
index a716f1f589..a716f1f589 100644
--- a/app/javascript/activetext/attachment_upload.js
+++ b/app/javascript/actiontext/attachment_upload.js
diff --git a/app/javascript/activetext/index.js b/app/javascript/actiontext/index.js
index c149eda952..c149eda952 100644
--- a/app/javascript/activetext/index.js
+++ b/app/javascript/actiontext/index.js