thecore 1.5.10 → 1.5.12
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/models/ckeditor/picture.rb +3 -3
- data/lib/thecore/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0c9fe2b18518e2ed8efcfc3414a7400b1b59c253
|
4
|
+
data.tar.gz: 14bd24ca7b727957ba0815c0ac8b68b078314e37
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9eeb1a4b46f977582abb8868234a682ef1b9c4b9d4a42e077f8aae69835523b8a0b34f6f1d9c485183a8833ee9f2d7bea5ca3ad04f25f92e1b189a344bda32d9
|
7
|
+
data.tar.gz: 9842d34beb327d95edc0426e9e8c80842177ab86141357ab8c47576e62283e6b5ddc5f434344b4d2a11b32f128a381b9185856df58588f5edd706e16a97a31e2
|
@@ -1,6 +1,6 @@
|
|
1
1
|
class Ckeditor::Picture < Ckeditor::Asset
|
2
2
|
has_attached_file :data,
|
3
|
-
url:
|
3
|
+
url: '/ckeditor_assets/pictures/:id/:style_:basename.:extension',
|
4
4
|
path: ':rails_root/public/ckeditor_assets/pictures/:id/:style_:basename.:extension',
|
5
5
|
styles: { content: '800>', thumb: '118x100#' }
|
6
6
|
|
@@ -10,7 +10,7 @@ class Ckeditor::Picture < Ckeditor::Asset
|
|
10
10
|
|
11
11
|
def url_content
|
12
12
|
# url(:content)
|
13
|
-
url_t = (ENV['RAILS_URL'].blank? ||
|
14
|
-
"#{
|
13
|
+
# url_t = (ENV['RAILS_URL'].blank? || ) ? "http://localhost:3000" : "#{ENV['RAILS_URL']}#{ENV['RAILS_RELATIVE_URL_ROOT']}"
|
14
|
+
"#{ENV['RAILS_URL'].presence || "http://localhost:3000"}#{ENV['RAILS_RELATIVE_URL_ROOT'].presence}#{url(:content)}"
|
15
15
|
end
|
16
16
|
end
|
data/lib/thecore/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: thecore
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.5.
|
4
|
+
version: 1.5.12
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Gabriele Tassoni
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-11-
|
11
|
+
date: 2018-11-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|