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