rails_admin_ui_layout_taris 1.2.20 → 1.2.21
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 172106c8e211882917f97e5223ba337092b12642
|
4
|
+
data.tar.gz: 554e11fe7c9fdea810fa2fe33baf7d29a70f3610
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: aab5d054af677add75ba2866c460766e8ddd7c67c567b492ee4e86ca0cd1d8e2c39b68782c298be2f0cc2bc4b85801621f97783b5fbad745ed7f488b4634b95f
|
7
|
+
data.tar.gz: e7074ddcb71a2856fe087a70c2db5dabab8010d668e9a66e95f9567a1227ea54ed3533f8f325bd308aa503a6b422e1474e8ceb083610d2ce0cf36a1d6f6accbf
|
@@ -1,7 +1,8 @@
|
|
1
1
|
:ruby
|
2
|
+
url = (ENV['RAILS_URL'].blank? || ENV['RAILS_RELATIVE_URL_ROOT'].blank?) ? "http://localhost:3000" : "#{ENV['RAILS_URL']}#{ENV['RAILS_RELATIVE_URL_ROOT']}"
|
2
3
|
js_data = {
|
3
|
-
jspath: field.location ? field.location : field.base_location + "ckeditor.js",
|
4
|
-
base_location:
|
4
|
+
jspath: field.location ? field.location : url + field.base_location + "ckeditor.js",
|
5
|
+
base_location: url,
|
5
6
|
options: {
|
6
7
|
customConfig: field.config_js ? field.config_js : field.base_location + "config.js"
|
7
8
|
}
|