File tree Expand file tree Collapse file tree 2 files changed +10
-4
lines changed
app/forms/concerns/decidim/reporting_proposals Expand file tree Collapse file tree 2 files changed +10
-4
lines changed Original file line number Diff line number Diff line change 65
65
66
66
- run : tar -zcf /tmp/testapp-env.tar.gz ./spec/decidim_dummy_app
67
67
68
- - uses : actions/upload-artifact@v3
68
+ - uses : actions/upload-artifact@v4
69
69
with :
70
70
name : workspace
71
71
path : /tmp/testapp-env.tar.gz
@@ -120,8 +120,11 @@ jobs:
120
120
with :
121
121
ruby-version : ${{ env.RUBY_VERSION }}
122
122
bundler-cache : true
123
+
124
+ - name : Install imagemagick
125
+ run : sudo apt install -y imagemagick
123
126
124
- - uses : actions/download-artifact@v3
127
+ - uses : actions/download-artifact@v4
125
128
with :
126
129
name : workspace
127
130
path : /tmp
@@ -140,7 +143,7 @@ jobs:
140
143
with :
141
144
token : ${{ secrets.CODECOV_TOKEN }}
142
145
143
- - uses : actions/upload-artifact@v3
146
+ - uses : actions/upload-artifact@v4
144
147
if : always()
145
148
with :
146
149
name : screenshots-${{ matrix.name }}
Original file line number Diff line number Diff line change @@ -10,8 +10,11 @@ module FormBuilderOverride
10
10
delegate :asset_pack_path , to : :@template
11
11
12
12
included do
13
+ alias_method :original_file_field , :file_field
14
+
13
15
def file_field ( object_name , options = { } )
14
- return super ( object_name , options ) unless Decidim ::ReportingProposals . use_camera_button
16
+ return original_file_field ( object_name , options ) unless Decidim ::ReportingProposals . use_camera_button
17
+ return original_file_field ( object_name , options ) unless @template . respond_to? ( :snippets )
15
18
16
19
unless @template . snippets . any? ( :reporting_proposals_camera_scripts ) || @template . snippets . any? ( :reporting_proposals_camera_styles )
17
20
@template . snippets . add ( :reporting_proposals_camera_scripts , @template . prepend_javascript_pack_tag ( "decidim_reporting_proposals_camera" ) )
You can’t perform that action at this time.
0 commit comments