thecore 1.5.7 → 1.5.8
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: 15452c0600033c6c982e51cb2e9cfb11530d1974
|
4
|
+
data.tar.gz: 61c8bd7462ee6ccd73fc5e8abaffda83eeaa07cf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 956a5552ab9e7537ce5ef01f9405044d334ae4acd1d25a147703631f9c30afffad7a464d01b17a6f400bbd72585c9a2b8c13e5f3f0486e9b0a3e551e5bdee372
|
7
|
+
data.tar.gz: b748e1a02bd821a5092cc4bdc15220257c1ab0b118f0b1d572d5d71fdf7a1cb61104041f2b775c47a26af62e1a5d4b48c51fba796dd6c4ea1ba9ea9882e05c9a
|
@@ -1,6 +1,6 @@
|
|
1
1
|
class Ckeditor::Picture < Ckeditor::Asset
|
2
2
|
has_attached_file :data,
|
3
|
-
url: '/ckeditor_assets/pictures/:id/:style_:basename.:extension',
|
3
|
+
url: ((ENV['RAILS_URL'].blank? || ENV['RAILS_RELATIVE_URL_ROOT'].blank?) ? "http://localhost:3000" : "#{ENV['RAILS_URL']}#{ENV['RAILS_RELATIVE_URL_ROOT']}") + '/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,11 +10,11 @@ class Ckeditor::Picture < Ckeditor::Asset
|
|
10
10
|
|
11
11
|
def url_content
|
12
12
|
# url(:content)
|
13
|
-
|
13
|
+
url_t = if ENV['RAILS_URL'].blank? || ENV['RAILS_RELATIVE_URL_ROOT'].blank?
|
14
14
|
"http://localhost:3000"
|
15
15
|
else
|
16
16
|
"#{ENV['RAILS_URL']}#{ENV['RAILS_RELATIVE_URL_ROOT']}"
|
17
17
|
end
|
18
|
-
"#{
|
18
|
+
"#{url_t}#{url(:content)}"
|
19
19
|
end
|
20
20
|
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.8
|
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-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|