Sha256: 38c5018dd1a3e5aae9e29d374920424e533d2757eeaf213262cdec5370536dd3

Contents?: true

Size: 444 Bytes

Versions: 4

Compression:

Stored size: 444 Bytes

Contents

module Refinery
  module RaceRegistrations
    class CategoriesController < ::ApplicationController

      def index
        if params[:registration_id]
          registration =  Refinery::RaceRegistrations::Registration.find(params[:registration_id])
          @categories = registration.categories

          respond_to do |format|
            format.json { render :json=> @categories  }
          end
        end
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
refinerycms-registrations-0.2.1 app/controllers/refinery/race_registrations/categories_controller.rb
refinerycms-registrations-0.1.2 app/controllers/refinery/race_registrations/categories_controller.rb
refinerycms-registrations-0.1.1 app/controllers/refinery/race_registrations/categories_controller.rb
refinerycms-registrations-0.1.0 app/controllers/refinery/race_registrations/categories_controller.rb