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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3fd2bfed890317066fbd7e7b5688ceb1fc3e521d
|
4
|
+
data.tar.gz: 201004a52bf7018d686d8814b15ede5a60476537
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
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.
|
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
|
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
|