refinerycms-blog 2.0.3 → 2.0.4
Sign up to get free protection for your applications and to get access to all the features.
@@ -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
|
-
:
|
8
|
+
:to => Blog::Comment::Notification.recipients,
|
9
9
|
:from => "\"#{Refinery::Core.site_name}\" <no-reply@#{request.domain}>"
|
10
10
|
end
|
11
11
|
|
@@ -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
|