Sha256: 6fc4ad0d6ac00b7a2fb3025f7400e77d9df363c5cd96ff77425a8f5bcb83acf3
Contents?: true
Size: 553 Bytes
Versions: 1
Compression:
Stored size: 553 Bytes
Contents
require_dependency 'iconly/application_controller' module Iconly class ProjectIconsController < ApplicationController before_action :set_project def create @project.project_icons.create(icon_id: params[:icon_id]) head :no_content end def destroy project_icon = @project.project_icons.find_by(icon_id: params[:id]) project_icon.destroy if project_icon head :no_content end private def set_project @project = current_user.projects.friendly.find(params[:project_id]) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
iconly-1.0.0 | app/controllers/iconly/project_icons_controller.rb |