Class: Mobile::EventsController

Inherits:
ApplicationController
  • Object
show all
Defined in:
app/controllers/mobile/events_controller.rb

Instance Method Summary collapse

Instance Method Details

#indexObject



11
12
13
14
15
# File 'app/controllers/mobile/events_controller.rb', line 11

def index
  organization = current_user.organizations.find(params[:organization_id])

  render :json => organization.events, :event => true
end