journalduhacker/app/models
joshua stein 9535b05490 remove story downvoting, add story hiding
stories should either be reported for spam (coming later), upvoted,
or left alone rather than being downvoted for being uninteresting.
since users don't like leaving uninteresting things alone, they can
now hide stories from their view without affecting the story's
score.

hiding is implemented as a Vote with its vote set to 0 and the
reason set to "H"

add a /hidden url which shows all of a user's hidden stories

while i'm here, simplify Vote guts and add some tests to make sure
all the flip-flopping stuff works right
2014-03-03 17:20:21 -06:00
..
.gitkeep initial work on conversion from php tree 2012-06-16 20:15:46 -05:00
comment.rb move initial upvote of submitted story to Story model 2014-03-03 17:13:00 -06:00
invitation.rb use Rails4-style strong parameters mass assignment protection 2014-02-02 15:41:38 -05:00
invitation_request.rb use Rails4-style strong parameters mass assignment protection 2014-02-02 15:41:38 -05:00
keystore.rb add postgresql support 2014-01-14 21:42:27 -05:00
message.rb use Rails4-style strong parameters mass assignment protection 2014-02-02 15:41:38 -05:00
moderation.rb use Rails4-style strong parameters mass assignment protection 2014-02-02 15:41:38 -05:00
search.rb also escape ~ char before sending to sphinx 2014-01-14 21:53:46 -06:00
short_id.rb change some before_create's to before_validation, :on => :create 2013-07-19 22:05:00 -05:00
story.rb remove story downvoting, add story hiding 2014-03-03 17:20:21 -06:00
tag.rb add Tag.active scope to deprecate tags without removing them 2014-02-21 10:57:30 -06:00
tag_filter.rb use Rails4-style strong parameters mass assignment protection 2014-02-02 15:41:38 -05:00
tagging.rb replace some raw sql with database-agnostic activerecord queries 2013-12-30 16:23:59 -05:00
user.rb reserve "moderator" and "moderators" usernames 2014-02-21 11:41:47 -06:00
vote.rb remove story downvoting, add story hiding 2014-03-03 17:20:21 -06:00