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.60.pre app/controllers/cmor/testimonials/backend/testimonials_controller.rb
cmor_testimonials_backend-0.0.59.pre app/controllers/cmor/testimonials/backend/testimonials_controller.rb
cmor_testimonials_backend-0.0.58.pre app/controllers/cmor/testimonials/backend/testimonials_controller.rb
cmor_testimonials_backend-0.0.57.pre app/controllers/cmor/testimonials/backend/testimonials_controller.rb
cmor_testimonials_backend-0.0.56.pre app/controllers/cmor/testimonials/backend/testimonials_controller.rb
cmor_testimonials_backend-0.0.55.pre app/controllers/cmor/testimonials/backend/testimonials_controller.rb
cmor_testimonials_backend-0.0.54.pre app/controllers/cmor/testimonials/backend/testimonials_controller.rb
cmor_testimonials_backend-0.0.53.pre app/controllers/cmor/testimonials/backend/testimonials_controller.rb
cmor_testimonials_backend-0.0.52.pre app/controllers/cmor/testimonials/backend/testimonials_controller.rb
cmor_testimonials_backend-0.0.51.pre app/controllers/cmor/testimonials/backend/testimonials_controller.rb
cmor_testimonials_backend-0.0.50.pre app/controllers/cmor/testimonials/backend/testimonials_controller.rb
cmor_testimonials_backend-0.0.49.pre app/controllers/cmor/testimonials/backend/testimonials_controller.rb
cmor_testimonials_backend-0.0.48.pre app/controllers/cmor/testimonials/backend/testimonials_controller.rb
cmor_testimonials_backend-0.0.45.pre app/controllers/cmor/testimonials/backend/testimonials_controller.rb
cmor_testimonials_backend-0.0.44.pre app/controllers/cmor/testimonials/backend/testimonials_controller.rb
cmor_testimonials_backend-0.0.43.pre app/controllers/cmor/testimonials/backend/testimonials_controller.rb
cmor_testimonials_backend-0.0.42.pre app/controllers/cmor/testimonials/backend/testimonials_controller.rb
cmor_testimonials_backend-0.0.41.pre app/controllers/cmor/testimonials/backend/testimonials_controller.rb
cmor_testimonials_backend-0.0.40.pre app/controllers/cmor/testimonials/backend/testimonials_controller.rb
cmor_testimonials_backend-0.0.39.pre app/controllers/cmor/testimonials/backend/testimonials_controller.rb