Sha256: bc8564319db3c22b6303a1b9a1a77be383e8c687ec3d630b7a94f4df3a4a93de
Contents?: true
Size: 416 Bytes
Versions: 6
Compression:
Stored size: 416 Bytes
Contents
class ProjectOptionsController < ApplicationController before_filter :get_project attr_reader :project def update project.props.merge! params[:options] project.save! head :ok end def destroy project.props.delete! params[:key] project.save! head :ok end private def get_project @project = Project.find_by_slug!(params[:slug]) authorize! :read, @project end end
Version data entries
6 entries across 6 versions & 1 rubygems