Sha256: 2d78c46e548d19ffd1ebaa180b76e5efba6ba64e52078d576880b22f6c44a188
Contents?: true
Size: 523 Bytes
Versions: 18
Compression:
Stored size: 523 Bytes
Contents
class Mobile::DashboardController < ApplicationController rescue_from ActiveRecord::RecordNotFound do error = { :error => "Could not load dashboard", :reason => "Organization could not be found", :code => 2 } render :json => error, :status => 404 end 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 end
Version data entries
18 entries across 18 versions & 1 rubygems