georgi-shinmun 0.3.2 → 0.3.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. data/example/map.rb +6 -2
  2. metadata +1 -1
data/example/map.rb CHANGED
@@ -22,8 +22,12 @@ Kontrol.map do
22
22
 
23
23
  post '/comments' do
24
24
  post = find_by_path(params['path'])
25
- post_comment(post, params)
26
- render '_comments.rhtml', :comments => comments_for(post)
25
+ if params['preview']
26
+ render '_comments.rhtml', :comments => [Shinmun::Comment.new(params)]
27
+ else
28
+ post_comment(post, params)
29
+ render '_comments.rhtml', :comments => comments_for(post)
30
+ end
27
31
  end
28
32
 
29
33
  get '/assets/javascripts\.js' do
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: georgi-shinmun
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.2
4
+ version: 0.3.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matthias Georgi