Sha256: ec0317ab97e306dc66f685f9d33bddfa715d1797448d7fc438cc55d46722b330

Contents?: true

Size: 373 Bytes

Versions: 12

Compression:

Stored size: 373 Bytes

Contents

module Alchemy
  module Admin
    class PictureDescriptionsController < Alchemy::Admin::ResourcesController
      def edit
        @picture_description = @picture.descriptions.find_or_initialize_by(language_id: params[:language_id])
      end

      private

      def load_resource
        @picture = Alchemy::Picture.find(params[:picture_id])
      end
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
alchemy_cms-7.3.4 app/controllers/alchemy/admin/picture_descriptions_controller.rb
alchemy_cms-7.3.3 app/controllers/alchemy/admin/picture_descriptions_controller.rb
alchemy_cms-7.3.2 app/controllers/alchemy/admin/picture_descriptions_controller.rb
alchemy_cms-7.2.7 app/controllers/alchemy/admin/picture_descriptions_controller.rb
alchemy_cms-7.3.1 app/controllers/alchemy/admin/picture_descriptions_controller.rb
alchemy_cms-7.3.0 app/controllers/alchemy/admin/picture_descriptions_controller.rb
alchemy_cms-7.2.6 app/controllers/alchemy/admin/picture_descriptions_controller.rb
alchemy_cms-7.2.5 app/controllers/alchemy/admin/picture_descriptions_controller.rb
alchemy_cms-7.2.4 app/controllers/alchemy/admin/picture_descriptions_controller.rb
alchemy_cms-7.2.3 app/controllers/alchemy/admin/picture_descriptions_controller.rb
alchemy_cms-7.2.2 app/controllers/alchemy/admin/picture_descriptions_controller.rb
alchemy_cms-7.2.1 app/controllers/alchemy/admin/picture_descriptions_controller.rb