ecm_pictures2_backend 3.1.1 → 3.1.2

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: da7fc13e2c8c3067f36587030e3f37a78742c9c6
4
- data.tar.gz: 63c969a1d24707c8984f625b6c006851308fa511
3
+ metadata.gz: 797f5a0a7ca36e5a7667a39100d5220b32668c4a
4
+ data.tar.gz: 3133b226f9afa78ad4262a6480eb7a60a4c8b31a
5
5
  SHA512:
6
- metadata.gz: 33fa98f9bb041b7c5c37b292c2787fee96402018a171763da067087f2ef26a23427b0e097e41c25c452a524a7a16e90d9f1c7a3da5b466ebd1ff6590497971ed
7
- data.tar.gz: ba6e906015f499ea0a2093b0e8624e3b30b0aaa8aa5dfafade82b6716ac932d6f6d254e82cdfa173c11fab189822764296e218fce80e87f99d4c08848c717841
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?
@@ -1,7 +1,7 @@
1
1
  module Ecm
2
2
  module Pictures
3
3
  module Backend
4
- VERSION = '3.1.1'.freeze
4
+ VERSION = '3.1.2'.freeze
5
5
  end
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ecm_pictures2_backend
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.1.1
4
+ version: 3.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Roberto Vasquez Angel