Sha256: 82a29d7f59c0df383957d8534d4e01d77e405ebd06883eb46e738f42295b2baf

Contents?: true

Size: 585 Bytes

Versions: 18

Compression:

Stored size: 585 Bytes

Contents

# frozen_string_literal: true

module Cmor::Seo
  class MetaTagsController < Cmor::Core::Backend::ResourcesController::Base
    include Rao::ResourcesController::ActsAsListConcern
    include Rao::ResourcesController::ActsAsPublishedConcern

    def self.resource_class
      Cmor::Seo::MetaTag
    end

    private
      def load_collection_scope
        super.includes(:item)
      end

      def after_reposition_location
        last_location
      end

      def permitted_params
        params.require(:meta_tag).permit(:item_id, :name, :content, :published)
      end
  end
end

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
cmor_seo-0.0.60.pre app/controllers/cmor/seo/meta_tags_controller.rb
cmor_seo-0.0.59.pre app/controllers/cmor/seo/meta_tags_controller.rb
cmor_seo-0.0.58.pre app/controllers/cmor/seo/meta_tags_controller.rb
cmor_seo-0.0.57.pre app/controllers/cmor/seo/meta_tags_controller.rb
cmor_seo-0.0.56.pre app/controllers/cmor/seo/meta_tags_controller.rb
cmor_seo-0.0.55.pre app/controllers/cmor/seo/meta_tags_controller.rb
cmor_seo-0.0.54.pre app/controllers/cmor/seo/meta_tags_controller.rb
cmor_seo-0.0.53.pre app/controllers/cmor/seo/meta_tags_controller.rb
cmor_seo-0.0.52.pre app/controllers/cmor/seo/meta_tags_controller.rb
cmor_seo-0.0.51.pre app/controllers/cmor/seo/meta_tags_controller.rb
cmor_seo-0.0.50.pre app/controllers/cmor/seo/meta_tags_controller.rb
cmor_seo-0.0.49.pre app/controllers/cmor/seo/meta_tags_controller.rb
cmor_seo-0.0.48.pre app/controllers/cmor/seo/meta_tags_controller.rb
cmor_seo-0.0.45.pre app/controllers/cmor/seo/meta_tags_controller.rb
cmor_seo-0.0.44.pre app/controllers/cmor/seo/meta_tags_controller.rb
cmor_seo-0.0.43.pre app/controllers/cmor/seo/meta_tags_controller.rb
cmor_seo-0.0.42.pre app/controllers/cmor/seo/meta_tags_controller.rb
cmor_seo-0.0.41.pre app/controllers/cmor/seo/meta_tags_controller.rb