Class: Alchemy::Admin::IngredientsController

Inherits:
BaseController show all
Includes:
CropAction
Defined in:
app/controllers/alchemy/admin/ingredients_controller.rb

Instance Method Summary collapse

Methods included from CropAction

#crop

Methods inherited from BaseController

#leave

Methods included from Modules

included, #module_definition_for, register_module

Methods included from Alchemy::AbilityHelper

#current_ability

Methods included from ConfigurationMethods

#configuration, #multi_language?, #multi_site?, #prefix_locale?

Instance Method Details

#editObject



12
13
14
15
# File 'app/controllers/alchemy/admin/ingredients_controller.rb', line 12

def edit
  @language = Alchemy::Language.find_by(id: params[:language_id]) ||
    Alchemy::Current.language
end

#updateObject



17
18
19
# File 'app/controllers/alchemy/admin/ingredients_controller.rb', line 17

def update
  @ingredient.update(ingredient_params)
end