Module: Api::ResourcesController::Base::CountAction

Extended by:
ActiveSupport::Concern
Included in:
Api::ResourcesController::Base
Defined in:
app/controllers/api/resources_controller/base.rb

Instance Method Summary collapse

Instance Method Details

#countObject


186
187
188
189
190
# File 'app/controllers/api/resources_controller/base.rb', line 186

def count
  respond_to do |format|
    format.json { render json: { count: @count } }
  end
end