Sha256: c51274c92644c373d4d5aaad4fe730b3c1272768caff6b68ed799809247dbf56
Contents?: true
Size: 436 Bytes
Versions: 18
Compression:
Stored size: 436 Bytes
Contents
class Mobile::EventsController < ApplicationController rescue_from ActiveRecord::RecordNotFound do error = { :error => "Could not load events", :reason => "Organization could not be found", :code => 2 } render :json => error, :status => 404 end def index organization = current_user.organizations.find(params[:organization_id]) render :json => organization.events, :event => true end end
Version data entries
18 entries across 18 versions & 1 rubygems