ecm_pictures2_backend 3.1.1 → 3.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 797f5a0a7ca36e5a7667a39100d5220b32668c4a
|
4
|
+
data.tar.gz: 3133b226f9afa78ad4262a6480eb7a60a4c8b31a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ed845221c2e7ecfcc1374305204b252bdeaf7b5618d70fed714c3134327de07ed2136b642671a8fd7bdd4c4ffd31e27daa3d154db1ebecb7ae80bc428aae47c9
|
7
|
+
data.tar.gz: bdfb0eff9dc637a52c32d68d49402b3f825323128137e6bd104c9d7dc20774bcedc88c1f71889c535921867fe62928959d361e674641af322770fd778183fabf
|
@@ -1,4 +1,21 @@
|
|
1
1
|
class Ecm::Pictures::Backend::PicturesController < Itsf::Backend::Resource::BaseController
|
2
|
+
module ColumnsHashFix
|
3
|
+
extend ActiveSupport::Concern
|
4
|
+
|
5
|
+
included do
|
6
|
+
before_action :fix_columns_hash, only: [:update]
|
7
|
+
end
|
8
|
+
|
9
|
+
private
|
10
|
+
|
11
|
+
def fix_columns_hash
|
12
|
+
# @todo Find out what is causing the loss of columns in columns_hash
|
13
|
+
resource_class.reset_column_information
|
14
|
+
end
|
15
|
+
end
|
16
|
+
|
17
|
+
include ColumnsHashFix
|
18
|
+
|
2
19
|
def self.resource_class
|
3
20
|
Ecm::Pictures::Picture
|
4
21
|
end
|
@@ -20,7 +37,7 @@ class Ecm::Pictures::Backend::PicturesController < Itsf::Backend::Resource::Base
|
|
20
37
|
def permitted_params
|
21
38
|
processed_params = params.deep_dup
|
22
39
|
image_base64 = processed_params[:picture].try(:delete, :image_base64)
|
23
|
-
|
40
|
+
|
24
41
|
p = processed_params.require(:picture).permit(:gallery_id, :name, :markup_language, :description, :tag_list, :image)
|
25
42
|
|
26
43
|
if image_base64.present?
|