Sha256: 1c3466897877b5afddb0cf427d0a87230025b628517710fd70be00b7c711ac52
Contents?: true
Size: 603 Bytes
Versions: 28
Compression:
Stored size: 603 Bytes
Contents
# frozen_string_literal: true module Alchemy module Admin class IngredientsController < Alchemy::Admin::BaseController load_and_authorize_resource class: Alchemy::Ingredient include CropAction helper "Alchemy::Admin::Ingredients" def edit end def update @ingredient.update(ingredient_params) end private def ingredient_params params.require(:ingredient).permit(@ingredient.class.stored_attributes[:data]) end def load_croppable_resource @croppable_resource = @ingredient end end end end
Version data entries
28 entries across 28 versions & 1 rubygems