Sha256: 40fc965cb6b5d4c92c71371ff14d2a0dd2fe64925d1a92d4f84725d7cba624e7

Contents?: true

Size: 452 Bytes

Versions: 6

Compression:

Stored size: 452 Bytes

Contents

module EnjuPurchaseRequest
  module Controller
    private

    def get_order_list
      if params[:order_list_id]
        @order_list = OrderList.find(params[:order_list_id])
        authorize @order_list, :show?
      end
    end

    def get_purchase_request
      if params[:purchase_request_id]
        @purchase_request = PurchaseRequest.find(params[:purchase_request_id])
        authorize @purchase_request,  :show?
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
enju_purchase_request-0.3.2 app/controllers/concerns/enju_purchase_request/controller.rb
enju_purchase_request-0.3.1 app/controllers/concerns/enju_purchase_request/controller.rb
enju_purchase_request-0.3.0.beta.1 app/controllers/concerns/enju_purchase_request/controller.rb
enju_purchase_request-0.2.1 app/controllers/concerns/enju_purchase_request/controller.rb
enju_purchase_request-0.2.0 app/controllers/concerns/enju_purchase_request/controller.rb
enju_purchase_request-0.2.0.beta.2 app/controllers/concerns/enju_purchase_request/controller.rb