Sha256: 24ff40b7e4f9a635c4eb9f0b2d10f9c8081c25ef17f24bac2ab3c8cf6405211f

Contents?: true

Size: 272 Bytes

Versions: 9

Compression:

Stored size: 272 Bytes

Contents

module Sunrise
  class SharedController < Sunrise::ApplicationController
    authorize_resource :class => false
    
    respond_to :json, :only => [:services]
    
    def services
      @services = Structure.with_depth(1)
      respond_with(@services)
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
sunrise-cms-0.4.2 app/controllers/sunrise/shared_controller.rb
sunrise-cms-0.4.1 app/controllers/sunrise/shared_controller.rb
sunrise-cms-0.4.0 app/controllers/sunrise/shared_controller.rb
sunrise-cms-0.3.3 app/controllers/sunrise/shared_controller.rb
sunrise-cms-0.3.2 app/controllers/sunrise/shared_controller.rb
sunrise-cms-0.3.1 app/controllers/sunrise/shared_controller.rb
sunrise-cms-0.3.0 app/controllers/sunrise/shared_controller.rb
sunrise-cms-0.3.0.rc2 app/controllers/sunrise/shared_controller.rb
sunrise-cms-0.3.0.rc app/controllers/sunrise/shared_controller.rb