cgi-spa 0.3.1 → 0.3.2
Sign up to get free protection for your applications and to get access to all the features.
- data/cgi-spa.gemspec +1 -1
- data/lib/cgi-spa/cgi-methods.rb +2 -2
- data/lib/cgi-spa/version.rb +1 -1
- metadata +1 -1
data/cgi-spa.gemspec
CHANGED
data/lib/cgi-spa/cgi-methods.rb
CHANGED
@@ -42,10 +42,10 @@ end
|
|
42
42
|
|
43
43
|
# post specific logic (doesn't produce output)
|
44
44
|
def $cgi.post
|
45
|
-
yield
|
45
|
+
yield if $HTTP_POST
|
46
46
|
end
|
47
47
|
|
48
48
|
# post specific content (produces output)
|
49
49
|
def $cgi.post! &block
|
50
|
-
html!(&block)
|
50
|
+
html!(&block) if $HTTP_POST
|
51
51
|
end
|
data/lib/cgi-spa/version.rb
CHANGED