refinerycms-blog 2.0.3 → 2.0.4

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.
@@ -2,7 +2,7 @@ module Refinery
2
2
  module Blog
3
3
  class PostsController < BlogController
4
4
 
5
- caches_page :index
5
+ caches_page :index, :unless => proc {|c| c.refinery_user_signed_in? || c.flash.any? || params[:page].present? }
6
6
 
7
7
  before_filter :find_all_blog_posts, :except => [:archive]
8
8
  before_filter :find_blog_post, :only => [:show, :comment, :update_nav]
@@ -5,7 +5,7 @@ module Refinery
5
5
  def notification(comment, request)
6
6
  @comment = comment
7
7
  mail :subject => Blog::Comment::Notification.subject,
8
- :recipients => Blog::Comment::Notification.recipients,
8
+ :to => Blog::Comment::Notification.recipients,
9
9
  :from => "\"#{Refinery::Core.site_name}\" <no-reply@#{request.domain}>"
10
10
  end
11
11
 
@@ -11,6 +11,8 @@ module Refinery
11
11
 
12
12
  validates :title, :presence => true, :uniqueness => true
13
13
 
14
+ attr_accessible :title
15
+
14
16
  def post_count
15
17
  posts.select(&:live?).count
16
18
  end
@@ -20,4 +22,4 @@ module Refinery
20
22
 
21
23
  end
22
24
  end
23
- end
25
+ end
@@ -4,6 +4,7 @@ module Refinery
4
4
  self.table_name = 'refinery_blog_categories_blog_posts'
5
5
  belongs_to :blog_post, :class_name => 'Refinery::Blog::Post', :foreign_key => :blog_post_id
6
6
  belongs_to :blog_category, :class_name => 'Refinery::Blog::Category', :foreign_key => :blog_category_id
7
-
7
+
8
+ attr_accessible :blog_category_id, :blog_post_id
8
9
  end
9
10
  end
@@ -3,7 +3,7 @@ module Refinery
3
3
  class Version
4
4
  @major = 2
5
5
  @minor = 0
6
- @tiny = 3
6
+ @tiny = 4
7
7
 
8
8
  class << self
9
9
  attr_reader :major, :minor, :tiny
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: refinerycms-blog
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.3
4
+ version: 2.0.4
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: