Sha256: de32b5cf80b554ffed0696cd661261cddd01dfc1035054fc86066ac3bb7268c1
Contents?: true
Size: 656 Bytes
Versions: 7
Compression:
Stored size: 656 Bytes
Contents
module Pageflow module LinkmapPage class MaskSpritesController < Pageflow::ApplicationController respond_to :json before_filter :authenticate_user! def create image_file = ImageFile.find(params[:image_file_id]) authorize!(:update, image_file) mask_sprite = MaskSprite .create_with(permitted_params) .find_or_create_by!(image_file_id: image_file.id) respond_with(mask_sprite, location: image_file_mask_sprite_url(image_file, mask_sprite)) end private def permitted_params params.require(:mask_sprite).permit(:attachment) end end end end
Version data entries
7 entries across 7 versions & 1 rubygems