rails: add 'URL' inflection.

Make it so we can write `ArtistURL` instead of `ArtistUrl`.
This commit is contained in:
evazion
2022-02-21 08:41:05 -06:00
parent fbab273c81
commit 60a26af6e3
8 changed files with 16 additions and 14 deletions

View File

@@ -1,10 +1,10 @@
# frozen_string_literal: true
class ArtistUrlsController < ApplicationController
class ArtistURLsController < ApplicationController
respond_to :js, :json, :xml, :html
def index
@artist_urls = ArtistUrl.paginated_search(params)
@artist_urls = ArtistURL.paginated_search(params)
@artist_urls = @artist_urls.includes(:artist) if request.format.html?
respond_with(@artist_urls)