piggybak 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.1.
|
1
|
+
0.1.1
|
@@ -1,6 +1,8 @@
|
|
1
1
|
module Piggybak
|
2
2
|
class OrdersController < ApplicationController
|
3
3
|
def show
|
4
|
+
response.headers['Cache-Control'] = 'no-cache'
|
5
|
+
|
4
6
|
@cart = Piggybak::Cart.new(request.cookies["cart"])
|
5
7
|
@order = Piggybak::Order.new
|
6
8
|
|
@@ -18,6 +20,8 @@ module Piggybak
|
|
18
20
|
end
|
19
21
|
|
20
22
|
def submit
|
23
|
+
response.headers['Cache-Control'] = 'no-cache'
|
24
|
+
|
21
25
|
begin
|
22
26
|
ActiveRecord::Base.transaction do
|
23
27
|
@order = Piggybak::Order.new(params[:piggybak_order])
|
@@ -53,6 +57,8 @@ module Piggybak
|
|
53
57
|
end
|
54
58
|
|
55
59
|
def receipt
|
60
|
+
response.headers['Cache-Control'] = 'no-cache'
|
61
|
+
|
56
62
|
@order = Piggybak::Order.find(session[:last_order])
|
57
63
|
end
|
58
64
|
|
data/piggybak.gemspec
CHANGED
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: piggybak
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 25
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 1
|
9
|
-
-
|
10
|
-
version: 0.1.
|
9
|
+
- 1
|
10
|
+
version: 0.1.1
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Steph Skardal
|