Sha256: 46c49a4383da803df9c82326335bce46ed4c2a0524b7d7e80c2c102b99e483ee
Contents?: true
Size: 301 Bytes
Versions: 3
Compression:
Stored size: 301 Bytes
Contents
module Admin class LabelsController < Admin::ApplicationController def create Admin::Label.create(label_param) end protected def label_param params.require(:admin_label).permit(:name) end def post @post ||= Post.find(params[:post_id]) end end end
Version data entries
3 entries across 3 versions & 1 rubygems