Sha256: 4665cd6ace5ea1c0cbff22409625197fb0c744b75ad1441ef68af12f9abaa08e
Contents?: true
Size: 385 Bytes
Versions: 1
Compression:
Stored size: 385 Bytes
Contents
OrdersController.class_eval do after_filter :store_guest, :only => :populate before_filter :check_authorization private def store_guest return if current_user session[:guest_token] ||= @order.user.authentication_token end def check_authorization if current_order authorize! :edit, current_order else authorize! :create, Order end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
spree_auth-0.30.0.beta1 | app/controllers/orders_controller_decorator.rb |