Class: Mobile::DashboardController

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

Instance Method Summary collapse

Instance Method Details

#showObject



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

def show
  organization = current_user.organizations.find(params[:organization_id])
  now = Time.parse(params[:now]) rescue Time.zone.now

  render :json => organization, :serializer => DashboardSerializer, :now => now
end