Class: Alchemy::Admin::IngredientsController
- Inherits:
-
BaseController
- Object
- ApplicationController
- BaseController
- BaseController
- Alchemy::Admin::IngredientsController
- Includes:
- CropAction
- Defined in:
- app/controllers/alchemy/admin/ingredients_controller.rb
Instance Method Summary collapse
Methods included from CropAction
Methods inherited from BaseController
Methods included from Modules
included, #module_definition_for, register_module
Methods included from Alchemy::AbilityHelper
Methods included from ConfigurationMethods
#configuration, #multi_language?, #multi_site?, #prefix_locale?
Instance Method Details
#edit ⇒ Object
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 |
#update ⇒ Object
17 18 19 |
# File 'app/controllers/alchemy/admin/ingredients_controller.rb', line 17 def update @ingredient.update(ingredient_params) end |