alchemy_file_selector 0.1.0 → 0.1.1

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: 4028a5535cd5efae9e24bfd7467f1952b3392701
4
- data.tar.gz: 72611e1f3076605d73dc3b0c0e5fb0ebe9c0c6cd
3
+ metadata.gz: 3fd2bfed890317066fbd7e7b5688ceb1fc3e521d
4
+ data.tar.gz: 201004a52bf7018d686d8814b15ede5a60476537
5
5
  SHA512:
6
- metadata.gz: d4496deb4c0bc514d918e9e4821d1437af051351d0f77db9db889f738b39c62fa02dae7d12cb980cf852f43550f3b6eb6ce1ff64cef8322145a5a92ec126e48c
7
- data.tar.gz: 78b6e04e9173306808449e2eae575b6a4fc62121dc62ccdb2d0034e47d26f8206f6d79c2af48c996cd58b5e18fa6aa571a023d1a36dce3104c01367bdd8ba40f
6
+ metadata.gz: 71d884b9bb31b043f838d3d89f4b06178db6a9d80b540bfad8297d48e3639c7990e6d427bb4b7c68bcfb4f07a630a89ec48c66dc9f2b0dd0ae5fec8db71e723a
7
+ data.tar.gz: bbece9788b9fa579acf5e90c38883ffaeaf924b2b782052dc51ceaf82f5e2a20ef03be503dce044e5771ee667965e4b642c2f88ea0290be095dbf9c8fad29a9e
@@ -0,0 +1 @@
1
+ Alchemy::Admin::PicturesController.include PicturesControllerDec
@@ -0,0 +1,22 @@
1
+ module PicturesControllerDec
2
+
3
+ extend ActiveSupport::Concern
4
+
5
+ included do
6
+
7
+
8
+ before_action :check_pictures_format, only: [:show]
9
+
10
+
11
+ private
12
+ def check_pictures_format
13
+
14
+ if request.xhr? and params[:format].blank?
15
+ request.format = 'html'
16
+ end
17
+
18
+ end
19
+
20
+ end
21
+
22
+ end
@@ -1,3 +1,3 @@
1
1
  module AlchemyFileSelector
2
- VERSION = '0.1.0'
2
+ VERSION = '0.1.1'
3
3
  end
metadata CHANGED
@@ -1,14 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: alchemy_file_selector
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
+ - Marino Bonetti
7
8
  - Jury Ghidinelli
8
9
  autorequire:
9
10
  bindir: bin
10
11
  cert_chain: []
11
- date: 2018-06-05 00:00:00.000000000 Z
12
+ date: 2018-07-06 00:00:00.000000000 Z
12
13
  dependencies:
13
14
  - !ruby/object:Gem::Dependency
14
15
  name: rails
@@ -68,6 +69,7 @@ dependencies:
68
69
  version: '0'
69
70
  description: AlchemyFileSelector.
70
71
  email:
72
+ - marinobonetti@gmail.com
71
73
  - juryghidinelli@gmail.com
72
74
  executables: []
73
75
  extensions: []
@@ -78,6 +80,8 @@ files:
78
80
  - Rakefile
79
81
  - app/assets/javascripts/alchemy_file_selector/alchemy_admin_require.js
80
82
  - app/assets/javascripts/tinymce/plugins/alchemy_file_selector/plugin.min.js
83
+ - app/controllers/alchemy/admin/pictures_controller_decorator.rb
84
+ - app/controllers/concerns/pictures_controller_dec.rb
81
85
  - app/views/alchemy/admin/pictures/show.json.jbuilder
82
86
  - lib/alchemy_file_selector.rb
83
87
  - lib/alchemy_file_selector/engine.rb