Class: Alchemy::Admin::PictureDescriptionsController
- Inherits:
-
ResourcesController
- Object
- ApplicationController
- BaseController
- BaseController
- ResourcesController
- Alchemy::Admin::PictureDescriptionsController
- Defined in:
- app/controllers/alchemy/admin/picture_descriptions_controller.rb
Constant Summary
Constants inherited from ResourcesController
ResourcesController::COMMON_SEARCH_FILTER_EXCLUDES
Instance Method Summary collapse
Methods inherited from ResourcesController
#create, #destroy, #index, #new, #resource_filters, #resource_filters_for_select, #resource_handler, #resource_has_deprecated_filters, #resource_has_filters, #show, #update
Methods included from ResourcesHelper
#contains_relations?, #edit_resource_path, #new_resource_path, #render_attribute, #render_resources, #resource_attribute_field_options, #resource_has_tags, #resource_instance_variable, #resource_model, #resource_name, #resource_path, #resource_relations_names, #resource_scope, #resource_url_proxy, #resource_window_size, #resources_instance_variable, #resources_path, #sortable_resource_header_column
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
4 5 6 |
# File 'app/controllers/alchemy/admin/picture_descriptions_controller.rb', line 4 def edit @picture_description = @picture.descriptions.find_or_initialize_by(language_id: params[:language_id]) end |