Sha256: bd7a2f9aaa3f6685bcc8b51bad3654e1bf9f167c3545f8d1c95014ec471ea1b0
Contents?: true
Size: 748 Bytes
Versions: 1
Compression:
Stored size: 748 Bytes
Contents
# frozen_string_literal: true module Account class WritersController < Account::BaseController before_action :find_structure, only: [:show] def show params[:per] = 10 if params[:per].blank? || params[:per].to_i < 1 api_responce = TranslationCms::Api::Customers::Writer.find(params[:id]) raise ActiveRecord::RecordNotFound, "Writer #{params[:id]} not found" if api_responce.errors.present? @writer = api_responce.first @feedbacks = @writer.writer_feedbacks @industries = TranslationCms::Api::IndustryExpertise.all! # Seo meta tags @meta_record = @writer respond_with @writer end private def find_structure load_structure(StructureType.writers) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
translation_cms-0.1.5 | app/controllers/account/writers_controller.rb |