Files
danbooru/app/models
evazion fbba167f0c artist.rb: fix ambiguous column references.
Using `search[empty_only]=true` caused certain queries to throw an
exception due to ambiguous column references after joining on the tags
table.

Example:

    https://danbooru.donmai.us/artists?search[empty_only]=true&search[name]=hammer*

    PG::AmbiguousColumn exception raised
    ERROR: column reference "name" is ambiguous LINE 1: ...ags"."name" = "artists"."name" WHERE (true) AND ((name LIKE ... ^
    lib/danbooru/paginator/active_record_extension.rb:108:in `total_count'
    lib/danbooru/paginator/active_record_extension.rb:63:in `block in paginate_numbered'
    lib/danbooru/paginator/active_record_extension.rb:60:in `tap'
    lib/danbooru/paginator/active_record_extension.rb:60:in `paginate_numbered'
    lib/danbooru/paginator/active_record_extension.rb:15:in `paginate'
    app/controllers/artists_controller.rb:41:in `index'
2017-04-07 18:25:31 -05:00
..
2017-02-28 16:28:58 -08:00
2017-01-03 15:04:47 -08:00
2015-08-18 17:40:53 -07:00
2014-04-16 17:43:34 -07:00
2017-01-03 15:04:47 -08:00
2014-04-16 17:43:34 -07:00
2017-04-07 18:25:21 -05:00
2017-02-21 13:40:52 -08:00
2016-09-25 14:56:19 -07:00
2017-01-17 15:46:21 -08:00
2015-08-18 17:40:53 -07:00