No commit activity in last 3 years
No release in over 3 years
Comments module for sunrise-cms
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

 Project Readme

Sunrise Comments¶ ↑

Comments system module for sunrise-cms

Install¶ ↑

gem "sunrise-comments"

bundle install

rake sunrise_comments_engine:install:migrations

rails generate sunrise:comments:install

In generated migration add “comments_count” column for counter cache:

add_column :posts, :comments_count, :integer, :default => 0

rake db:migrate

Usage¶ ↑

class Post < ActiveRecord::Base
  include Sunrise::Comments::Base
end

class User < ActiveRecord::Base
  include Sunrise::Comments::Author
end

Copyright © 2011-2012 Fodojo, released under the MIT license