Sha256: 80e8f1491ffa4932af3e1b8a3c0badd683bdfc73271443e7b9606c8d35761854

Contents?: true

Size: 331 Bytes

Versions: 1

Compression:

Stored size: 331 Bytes

Contents

module Effective
  class AttachmentsController < ApplicationController
    skip_authorize_resource if defined?(CanCan)
    respond_to :json

    def show
      @asset = Asset.find(params[:id]) # This should actually search Assets

      EffectiveAssets.authorized?(self, :read, @asset)

      respond_with @asset
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
effective_assets-0.1 app/controllers/effective/attachments_controller.rb