Sha256: e9d8982422bd83d4f34bc7b15facf914348cb8a6530641e2c3c1c7ce64ca0dff

Contents?: true

Size: 444 Bytes

Versions: 12

Compression:

Stored size: 444 Bytes

Contents

module Alchemy
  class ContentsController < BaseController
    load_and_authorize_resource
    layout false

    rescue_from CanCan::AccessDenied do |exception|
      raise ActiveRecord::RecordNotFound
    end

    respond_to :json

    def show
      ActiveSupport::Deprecation.warn('The Alchemy contents json API moved to `api` namespace. Please use `/api/contents` for json requests instead.')
      respond_with @content
    end

  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
alchemy_cms-3.1.3 app/controllers/alchemy/contents_controller.rb
alchemy_cms-3.1.1 app/controllers/alchemy/contents_controller.rb
alchemy_cms-3.1.0 app/controllers/alchemy/contents_controller.rb
alchemy_cms-3.1.0.rc3 app/controllers/alchemy/contents_controller.rb
alchemy_cms-3.1.0.rc2 app/controllers/alchemy/contents_controller.rb
alchemy_cms-3.1.0.rc1 app/controllers/alchemy/contents_controller.rb
alchemy_cms-3.1.0.beta6 app/controllers/alchemy/contents_controller.rb
alchemy_cms-3.1.0.beta5 app/controllers/alchemy/contents_controller.rb
alchemy_cms-3.1.0.beta4 app/controllers/alchemy/contents_controller.rb
alchemy_cms-3.1.0.beta3 app/controllers/alchemy/contents_controller.rb
alchemy_cms-3.1.0.beta2 app/controllers/alchemy/contents_controller.rb
alchemy_cms-3.1.0.beta1 app/controllers/alchemy/contents_controller.rb