Sha256: 3a37ecce4ed93c2635ec43a3d79fa732b11c4ea1890218d88407a779e58f8928

Contents?: true

Size: 293 Bytes

Versions: 9

Compression:

Stored size: 293 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
      respond_with @content
    end

  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
alchemy_cms-3.0.4 app/controllers/alchemy/contents_controller.rb
alchemy_cms-3.0.3 app/controllers/alchemy/contents_controller.rb
alchemy_cms-3.0.2 app/controllers/alchemy/contents_controller.rb
alchemy_cms-3.0.1 app/controllers/alchemy/contents_controller.rb
alchemy_cms-3.0.0 app/controllers/alchemy/contents_controller.rb
alchemy_cms-3.0.0.rc8 app/controllers/alchemy/contents_controller.rb
alchemy_cms-3.0.0.rc7 app/controllers/alchemy/contents_controller.rb
alchemy_cms-3.0.0.rc6 app/controllers/alchemy/contents_controller.rb
alchemy_cms-3.0.0.rc5 app/controllers/alchemy/contents_controller.rb