96 Commits

Author SHA1 Message Date
Rei
fb11353b3a Fix compatible issues with trashable and counter_cache 2014-07-12 12:59:30 +08:00
teng.cong
4c78a10c1d Fix total page bug
Topic#total_pages return wrong result, if comments_count == Comment.default_per_page
2014-06-12 21:54:18 +08:00
Rei
59e5daf0e3 Create comment notification job 2014-04-12 21:47:42 +08:00
Rei
8aa0e782b4 Move confirmable to User model, avoid superclass mismatch 2014-04-12 17:04:08 +08:00
Rei
10bc72acc2 Add user confirmation module 2014-04-12 16:32:58 +08:00
Rei
5ad126fbaf Use Rails.application.message_verifier to generate password reset token 2014-04-05 16:04:40 +08:00
Rei
d0a97e8554 User default counter cahce and touch option, and fix for trashed status 2014-04-05 14:21:12 +08:00
Rei
5a18d47294 Don't clean likes after topic/comment trash 2014-04-05 11:09:42 +08:00
Rei
8238f638e8 Change profile page style 2014-04-04 14:52:41 +08:00
Rei
ffe3f9b6b0 Fix username mention to case insensitive 2014-03-21 20:28:38 +08:00
Rei
8ac73dc0ac Same username format in mention extract 2014-03-18 01:04:28 +08:00
Rei
971ca332a0 Fix username format validation 2014-03-18 00:56:34 +08:00
quake wang
ebe89c8dd3 rescue elasticsearch exception and add logger 2014-03-17 15:22:22 +08:00
Rei
be45b31151 Update category topics_count when update topic, fix #15 2014-03-17 14:39:17 +08:00
Rei
0246ddbd63 Remove _lower column; add lower index; change schema_format to :sql 2014-03-10 15:41:49 +08:00
Rei
ffc1f65b38 Fix #9 timing attack 2014-03-07 23:52:27 +08:00
Rei
67da4e0289 Set dependent destroy for topics and comments
Use topic and comment callback to clearn likes and notifications.
2014-03-07 20:06:10 +08:00
Rei
0b85092a46 remove unuse has_many like_topics associations 2014-03-07 19:43:46 +08:00
Rei
4cb78c87b5 Fix topic hot accuracy 2014-03-07 19:20:04 +08:00
Rei
47daf91bc8 Delete likes after likeable trash 2014-03-07 16:11:32 +08:00
Rei
aadff9ca51 User touch callback for topic hot update instead of method 2014-03-07 15:33:51 +08:00
Rei
c6941c5d5e Delete notification after comment delete 2014-03-07 12:25:15 +08:00
Rei
633a58a926 Add development and test mode admin_emails, for easy setup 2014-03-07 00:44:30 +08:00
Rei
822d9a2cfe Fix Topic#related_topics dup item 2014-03-01 13:10:22 +08:00
Rei
017d3a6d78 Set trashed false as default_scope 2014-02-28 19:15:24 +08:00
Rei
c86de60d13 Add password_reset_token to User 2014-02-27 16:27:13 +08:00
Rei
b159009fa3 Use define_model_callbacks instead of define_callbacks 2014-02-26 15:22:41 +08:00
Rei
7257863971 User trashed boolean column instead of trashed_at 2014-02-26 15:20:39 +08:00
Rei
b6167800c2 Add AvatarUploader 2014-02-19 21:02:15 +08:00
Rei
88e35ee2ec Add admin attachments page 2014-02-18 21:26:44 +08:00
Rei
45b93f0663 Add uploader 2014-02-18 16:46:02 +08:00
Rei
7e072cbc33 Add more like this topics to sidebar 2014-02-17 21:40:08 +08:00
Rei
4219593f87 Add elasticsearch gem 2014-02-17 19:30:01 +08:00
Rei
5eea71905e Topic last page link 2014-02-16 20:10:17 +08:00
Rei
d47e66d42e Fix topics counter cache 2014-02-16 19:18:45 +08:00
Rei
6536562375 Fix comments counter cache and topic hot update 2014-02-16 19:12:57 +08:00
Rei
23e91b9cb5 Add Topic/Comment validate 2014-02-15 15:20:54 +08:00
Rei
b502441531 Add email and user format validate 2014-02-15 13:43:29 +08:00
Rei
2c44b1a66f Add Gravatar 2014-02-12 13:10:25 +08:00
Rei
f656fcf86a Replace trashed column with trashed_at for trashable 2014-02-10 23:18:57 +08:00
Rei
b835f61e7e Add admin users lock aciont 2014-02-10 14:45:47 +08:00
Rei
24c0a41740 Change topics sort link style 2014-02-09 14:49:06 +08:00
Rei
cf1f5e31a3 Fix migration index 2014-02-08 15:01:59 +08:00
Rei
101837842a Same username format with slug; add slug_lower column 2014-02-08 14:53:06 +08:00
Rei
775d624524 Init Category model 2014-02-08 14:42:40 +08:00
Rei
0e67a03a80 Rename content column to body 2014-02-06 15:09:53 +08:00
Rei
5bdfeb8b0b comment notifications 2014-02-06 14:27:05 +08:00
Rei
b1ef88447b Update gems 2014-02-05 20:38:30 +08:00
Rei
0fe86fb37d subscription controller 2014-02-05 20:32:27 +08:00
Rei
4b107831b5 More Subscribable method 2014-02-05 20:12:58 +08:00