Sha256: 873d179ffecc6b84b3cb6f43f179b080c2a79ca9a48df390f7ed370f1e31be6b

Contents?: true

Size: 732 Bytes

Versions: 49

Compression:

Stored size: 732 Bytes

Contents

module Cmor
  module Testimonials
    module Backend
      class TestimonialsController < Cmor::Core::Backend::ResourcesController::Base
        include Rao::ResourcesController::ActsAsListConcern
        include Rao::ResourcesController::ActsAsPublishedConcern

        def self.resource_class
          Cmor::Testimonials::Testimonial
        end

        private

        def load_collection_scope
          super.eager_load(:category)
        end

        def permitted_params
          params.require(:testimonial).permit(:category_id, :fullname, :role, :company, :body, :published, :image)
        end

        def after_reposition_location
          request.headers["Referer"] || super
        end
      end
    end
  end
end

Version data entries

49 entries across 49 versions & 1 rubygems

Version Path
cmor_testimonials_backend-0.0.38.pre app/controllers/cmor/testimonials/backend/testimonials_controller.rb
cmor_testimonials_backend-0.0.37.pre app/controllers/cmor/testimonials/backend/testimonials_controller.rb
cmor_testimonials_backend-0.0.36.pre app/controllers/cmor/testimonials/backend/testimonials_controller.rb
cmor_testimonials_backend-0.0.35.pre app/controllers/cmor/testimonials/backend/testimonials_controller.rb
cmor_testimonials_backend-0.0.34.pre app/controllers/cmor/testimonials/backend/testimonials_controller.rb
cmor_testimonials_backend-0.0.33.pre app/controllers/cmor/testimonials/backend/testimonials_controller.rb
cmor_testimonials_backend-0.0.32.pre app/controllers/cmor/testimonials/backend/testimonials_controller.rb
cmor_testimonials_backend-0.0.31.pre app/controllers/cmor/testimonials/backend/testimonials_controller.rb
cmor_testimonials_backend-0.0.30.pre app/controllers/cmor/testimonials/backend/testimonials_controller.rb
cmor_testimonials_backend-0.0.29.pre app/controllers/cmor/testimonials/backend/testimonials_controller.rb
cmor_testimonials_backend-0.0.28.pre app/controllers/cmor/testimonials/backend/testimonials_controller.rb
cmor_testimonials_backend-0.0.27.pre app/controllers/cmor/testimonials/backend/testimonials_controller.rb
cmor_testimonials_backend-0.0.26.pre app/controllers/cmor/testimonials/backend/testimonials_controller.rb
cmor_testimonials_backend-0.0.25.pre app/controllers/cmor/testimonials/backend/testimonials_controller.rb
cmor_testimonials_backend-0.0.24.pre app/controllers/cmor/testimonials/backend/testimonials_controller.rb
cmor_testimonials_backend-0.0.22.pre app/controllers/cmor/testimonials/backend/testimonials_controller.rb
cmor_testimonials_backend-0.0.21.pre app/controllers/cmor/testimonials/backend/testimonials_controller.rb
cmor_testimonials_backend-0.0.19.pre app/controllers/cmor/testimonials/backend/testimonials_controller.rb
cmor_testimonials_backend-0.0.18.pre app/controllers/cmor/testimonials/backend/testimonials_controller.rb
cmor_testimonials_backend-0.0.17.pre app/controllers/cmor/testimonials/backend/testimonials_controller.rb