beef-articles 0.3.14 → 0.3.15

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.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.3.14
1
+ 0.3.15
@@ -76,7 +76,7 @@ class Admin::CategoriesController < Admin::BaseController
76
76
  if @category.destroy
77
77
  flash[:notice] = 'Category was successfully deleted.'
78
78
  else
79
- flash[:error] = 'Category could not be deleted.'
79
+ flash[:error] = 'Category could not be deleted as ithas content associated with it'
80
80
  end
81
81
 
82
82
  respond_to do |format|
@@ -49,7 +49,9 @@ class ArticlesController < ApplicationController
49
49
  def preview
50
50
  @page_class = 'show'
51
51
  @article = Article.new(session[:article_preview])
52
+ @article.id = 0
52
53
  @article.published_at = Time.now
54
+ @article.created_by = current_user
53
55
  @article.permalink = 'preview'
54
56
  session[:article_preview] = nil
55
57
  render :action => "show"
@@ -27,6 +27,9 @@
27
27
  </tbody>
28
28
  <tfoot>
29
29
  <tr>
30
+ <% if @commentable.nil? -%>
31
+ <th>Article</th>
32
+ <% end -%>
30
33
  <%= sortable_table_header :name => "Name", :sort => "name" %>
31
34
  <%= sortable_table_header :name => "Comment", :sort => "comment" %>
32
35
  <%= sortable_table_header :name => "Created", :sort => "created_at" %>
data/articles.gemspec CHANGED
@@ -2,11 +2,11 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{articles}
5
- s.version = "0.3.14"
5
+ s.version = "0.3.15"
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"]
9
- s.date = %q{2009-09-02}
9
+ s.date = %q{2009-09-03}
10
10
  s.email = %q{steve@wearebeef.co.uk}
11
11
  s.extra_rdoc_files = [
12
12
  "LICENSE",
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.14
4
+ version: 0.3.15
5
5
  platform: ruby
6
6
  authors:
7
7
  - Steve England
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-09-02 00:00:00 -07:00
12
+ date: 2009-09-03 00:00:00 -07:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency