beef-articles 0.3.6 → 0.3.7

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.3.6
1
+ 0.3.7
@@ -28,10 +28,12 @@ class CommentsController < ApplicationController
28
28
 
29
29
  respond_to do |format|
30
30
  if @comment.save
31
- format.html { redirect_to permalink( @commentable, :anchor => "comment-#{@comment.id}" ) }
31
+ format.html { redirect_to @commentable }
32
+ format.js
32
33
  format.json { render :json => @comment.to_json(:except => [:commentable_type, :commentable_id ]), :status => :created, :location => permalink(@commentable, :anchor => "comment-#{@comment.id}") }
33
34
  else
34
35
  format.html { render :action => 'new' }
36
+ format.js
35
37
  format.json { render :json => @comment.errors.full_messages, :status => :unprocessable_entity }
36
38
  end
37
39
  end
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{articles}
5
- s.version = "0.3.6"
5
+ s.version = "0.3.7"
6
6
 
7
7
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
8
8
  s.authors = ["Steve England"]
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: beef-articles
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.6
4
+ version: 0.3.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Steve England