1
0
Fork 0
Commit Graph

21 Commits

Author SHA1 Message Date
Andrew Tomaka 5c4eca47a6 Fix some more n+1 stuff 2015-12-23 17:01:23 -05:00
Andrew Tomaka d74152c5f9 Add authorization via Pundit 2015-12-23 15:44:58 -05:00
Andrew Tomaka 0d941a3cd3 Clean up metric_fu violations 2015-12-11 16:06:10 -05:00
Andrew Tomaka 52358fa68a Fix many N+1 queries 2015-12-11 15:15:33 -05:00
Andrew Tomaka 6993bb0ecd Add a quick front apge 2015-12-11 15:05:16 -05:00
Andrew Tomaka b68960efe5 Refactor page header code 2015-08-12 15:31:30 -04:00
Andrew Tomaka c880ba31b8 Creaet simple user profile 2015-08-12 14:48:44 -04:00
Andrew Tomaka bbdc0001b4 Initial attempt at comments 2015-08-05 19:53:17 -04:00
Andrew Tomaka 86e1cd891c Fix some law of demeter violations 2015-07-20 15:15:57 -04:00
Andrew Tomaka 19b6d7a8cd Replace homegrown slug with friendly_id 2015-07-16 02:26:27 -04:00
Andrew Tomaka 0b9286d152 Layout fixes to be closer to reddit 2015-07-15 23:39:55 -04:00
Andrew Tomaka ade54533e6 Add ability to create posts 2015-07-14 22:27:55 -04:00
Andrew Tomaka 7975ec2012 Add some basic integration testing
Rushed but it'll work for now
2015-07-14 13:51:15 -04:00
Andrew Tomaka d3dd0ff848 Add the subcreddit MVC
Notes on closing subcreddit:

This doesn't seem great.  Would be slightly better if closed could be referenced
as true or false instead of '0' or '1' in the model.  Testing this is a bit
messy, but Tiemcop makes it a bit better.

Notes on subcreddit validations:

This is still not ideal.  For starters, from
http://guides.rubyonrails.org/active_record_validations.html:

"Note that some databases are configured to perform case-insensitive searches
anyway."

It also seems difficult to validate fields that are set in before_save since
validations occur before callbacks.  Revisit this (perhaps friendly_id wll save
us).
2015-07-13 17:01:12 -04:00
Andrew Tomaka 1abbdbac12 Add flash notices for sign in, sign out, sign up 2015-07-10 16:21:59 -04:00
Andrew Tomaka 3308cfc1c1 Add user sessions 2015-07-10 14:33:39 -04:00
Andrew Tomaka 6708b4a501 Add metrics for testing / style / best practices 2015-07-10 00:27:23 -04:00
Andrew Tomaka 790cb26f2a We basically are reddit now 2015-07-09 23:47:34 -04:00
Andrew Tomaka 8344498740 Add user creation 2015-07-09 16:31:41 -04:00
Andrew Tomaka 0c0c128f5e Development and testing setup 2015-07-08 14:51:49 -04:00
Andrew Tomaka b6ec589f33 Initial commit 2015-07-08 10:24:41 -04:00