thecore 1.5.13 → 1.5.14
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
- data/test/dummy/log/development.log +15 -0
- 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: 1031f312dc55a70d3b31cac1d0dccdb3c90e51e7
|
4
|
+
data.tar.gz: f77bccd20d59ea168b95d36cff7dcad5e67467d6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f20fa1cdba541aea079eccfc1b893ed8d8a2f739573d727504af758a72fdab00226b31b73516caecc82fac174ae3d90b67f985869d05ca90f8e23db9e1812fd1
|
7
|
+
data.tar.gz: 74f406f98fad34af8e8f71a693352b2041e594626500bc48dd5177394b9b7bfb923fc7877adda0c122946fd7b702f300e78bc09bf787fe867060fedced9894bf
|
@@ -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_RELATIVE_URL_ROOT'].presence}/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_t = (ENV['RAILS_URL'].blank? || ) ? "http://localhost:3000" : "#{ENV['RAILS_URL']}#{ENV['RAILS_RELATIVE_URL_ROOT']}"
|
13
|
-
#
|
14
|
-
url(:content)
|
13
|
+
# url(:content)
|
14
|
+
"#{ENV['RAILS_URL'].presence}#{ENV['RAILS_RELATIVE_URL_ROOT'].presence}#{url(:content)}"
|
15
15
|
end
|
16
16
|
end
|
data/lib/thecore/version.rb
CHANGED
@@ -19,3 +19,18 @@ true by adding the following to your application.rb file:
|
|
19
19
|
|
20
20
|
Rails.application.config.active_record.sqlite3.represent_boolean_as_integer = true
|
21
21
|
(called from <top (required)> at /home/gabrieletassoni/Git/rails/thecore_project/thecore/test/dummy/config/environment.rb:5)
|
22
|
+
Selected Locale: en
|
23
|
+
DEPRECATION WARNING: Leaving `ActiveRecord::ConnectionAdapters::SQLite3Adapter.represent_boolean_as_integer`
|
24
|
+
set to false is deprecated. SQLite databases have used 't' and 'f' to serialize
|
25
|
+
boolean values and must have old data converted to 1 and 0 (its native boolean
|
26
|
+
serialization) before setting this flag to true. Conversion can be accomplished
|
27
|
+
by setting up a rake task which runs
|
28
|
+
|
29
|
+
ExampleModel.where("boolean_column = 't'").update_all(boolean_column: 1)
|
30
|
+
ExampleModel.where("boolean_column = 'f'").update_all(boolean_column: 0)
|
31
|
+
|
32
|
+
for all models and all boolean columns, after which the flag must be set to
|
33
|
+
true by adding the following to your application.rb file:
|
34
|
+
|
35
|
+
Rails.application.config.active_record.sqlite3.represent_boolean_as_integer = true
|
36
|
+
(called from <top (required)> at /home/gabrieletassoni/Git/rails/thecore_project/thecore/test/dummy/config/environment.rb:5)
|
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.14
|
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-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|