Initial commit
This commit is contained in:
23
app/controllers/location_releases/photos_controller.rb
Normal file
23
app/controllers/location_releases/photos_controller.rb
Normal file
@@ -0,0 +1,23 @@
|
||||
class LocationReleases::PhotosController < ApplicationController
|
||||
include LocationReleaseContext
|
||||
|
||||
before_action :set_location_release
|
||||
|
||||
def edit
|
||||
end
|
||||
|
||||
def update
|
||||
if @location_release.update(location_release_params)
|
||||
SetTagsForReleasableJob.perform_later(@location_release)
|
||||
redirect_to @location_release.project, notice: t(".notice")
|
||||
else
|
||||
render :new
|
||||
end
|
||||
end
|
||||
|
||||
private
|
||||
|
||||
def location_release_params
|
||||
params.require(:location_release).permit(photos: [])
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user