evazion
a7dc05ce63
Enable frozen string literals.
...
Make all string literals immutable by default.
2021-12-14 21:33:27 -06:00
evazion
07e23204b6
rubocop: fix various Rubocop warnings.
2021-06-17 04:17:53 -05:00
evazion
60ff2ae929
models: rename post/pool archives to post/pool versions.
2020-02-15 06:52:10 -06:00
Albert Yi
79ea6f7e6c
Add Docker and Travis config files to enable CI tests
...
Also fixes some Rails 6.0 deprecation warnings
2018-05-09 09:56:38 -07:00
evazion
d1d0fe9bc5
/moderator/dashboard: optimize sql queries
...
* Converts queries to use active record instead of raw sql. This ensures
that user objects are loaded by rails in the join, so that we
don't have to issue `User.find` calls to load users one-by-one.
* Use `.includes` to preload associations used in the view, to avoid
additional N+1 query problems (primarily, calls to link_to_user
also causing users to be loaded one-by-one).
2017-03-23 04:05:05 -05:00
evazion
2aa3f9ceba
/moderator/dashboard: fix exception when PostArchive isn't enabled.
...
NoMethodError exception raised
undefined method `each' for nil:NilClass
app/views/moderator/dashboards/_activity_tag.html.erb:10:in `_app_views_moderator_dashboards__activity_tag_html_erb__4366063041301266690_47304449138520'
app/views/moderator/dashboards/show.html.erb:10:in `_app_views_moderator_dashboards_show_html_erb___734721021521262965_47304462731220'
2017-03-21 17:17:19 -05:00
evazion
cebf592e20
/moderator/dashboard: fix post version reference.
2017-03-18 05:18:01 -05:00
小太
cba839ba76
Kill trailing whitespace in ruby files
2013-03-19 23:10:10 +11:00
albert
a60eae695a
restyle mod dashboard
2013-02-23 18:50:00 -05:00
albert
5158d1b274
fixes for upgrade schema script
2011-11-06 10:12:23 -05:00
albert
c8cb217e6c
fix for dashboard
2011-09-15 18:06:42 -04:00
albert
d0e8084f0f
implemented moderator dashboard queue
2011-07-22 17:34:43 -04:00
albert
58c3d2af13
fixing tests
2011-07-16 19:20:02 -04:00