Sha256: a9f9de7695e6e5a8192c2ead4b5a5ee874a80cc60ef3b6cb093b6f7be55b7360

Contents?: true

Size: 481 Bytes

Versions: 2

Compression:

Stored size: 481 Bytes

Contents

module Forge
  module Controllers
    module eCommerce
      def get_cart_order
        @cart_order = Order.where(:key => cookies[:order_key], :state => "pending").first if cookies[:order_key]
      end
      private_method :get_cart_order

      def require_addresses_for_checkout
        unless @cart_order.valid_addresses?
          redirect_to "orders/checkout"
          return false
        end
      end
      private_method :require_addresses_for_checkout
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
forge-cli-0.0.10 lib/forge/config/initializers/forge/controllers/ecommerce.rb
forge-cli-0.0.9 lib/forge/config/initializers/forge/controllers/ecommerce.rb