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

Version Path
artfully_ose-1.3.0.pre4 app/controllers/mobile/events_controller.rb
artfully_ose-1.3.0.pre3 app/controllers/mobile/events_controller.rb
artfully_ose-1.3.0.pre2 app/controllers/mobile/events_controller.rb
artfully_ose-1.3.0.pre1 app/controllers/mobile/events_controller.rb
artfully_ose-1.2.0 app/controllers/mobile/events_controller.rb
artfully_ose-1.2.0.beta.1 app/controllers/mobile/events_controller.rb
artfully_ose-1.2.0.alpha.2 app/controllers/mobile/events_controller.rb
artfully_ose-1.2.0.alpha.1 app/controllers/mobile/events_controller.rb
artfully_ose-1.2.0.pre.27 app/controllers/mobile/events_controller.rb
artfully_ose-1.2.0.pre.26 app/controllers/mobile/events_controller.rb
artfully_ose-1.2.0.pre.24 app/controllers/mobile/events_controller.rb
artfully_ose-1.2.0.pre.23 app/controllers/mobile/events_controller.rb
artfully_ose-1.2.0.pre.21 app/controllers/mobile/events_controller.rb
artfully_ose-1.2.0.pre.20 app/controllers/mobile/events_controller.rb
artfully_ose-1.2.0.pre.19 app/controllers/mobile/events_controller.rb
artfully_ose-1.2.0.pre.18 app/controllers/mobile/events_controller.rb
artfully_ose-1.2.0.pre.17 app/controllers/mobile/events_controller.rb
artfully_ose-1.2.0.pre.16 app/controllers/mobile/events_controller.rb