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

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