Sha256: b6bc664eb3bedc6ac26fb641282c6c5b38eb8b882a4d1d4ac5dbf64b8e02173f

Contents?: true

Size: 735 Bytes

Versions: 24

Compression:

Stored size: 735 Bytes

Contents

module C80Yax
  class AdminDataController < ApplicationController

    # http://stackoverflow.com/questions/5130150/rails-how-to-use-a-helper-inside-a-controller
    include DataHelper

    def get_strsubcat_propnames
      Rails.logger.debug '[TRACE] <admin_data_controller.get_strsubcat_propnames> Получить список имён свойств данной подкатегории.'
      Rails.logger.debug "[TRACE] <admin_data_controller.get_strsubcat_propnames> request: #{request.request_parameters}"

      strsubcat_id = request.params[:strsubcat_id]

      obj = stdh_get_strsubcat_propnames(strsubcat_id)

      respond_to do |format|
        format.js { render json: obj, status: :ok }
      end

    end

  end
end

Version data entries

24 entries across 24 versions & 1 rubygems

Version Path
c80_yax-0.1.0.4 app/controllers/c80_yax/admin_data_controller.rb
c80_yax-0.1.0.3 app/controllers/c80_yax/admin_data_controller.rb
c80_yax-0.1.0.2 app/controllers/c80_yax/admin_data_controller.rb
c80_yax-0.1.0.1 app/controllers/c80_yax/admin_data_controller.rb