Adjust naming of user and model attributes
- Remove unnecessary attributes that cause additional SQL queries - Remove unneeded check for nil on current_item
This commit is contained in:
@@ -519,7 +519,7 @@ class Artist < ApplicationRecord
|
||||
|
||||
module ApiMethods
|
||||
def html_data_attributes
|
||||
[:creator_id, [:wiki_page, :id]]
|
||||
[:creator_id]
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
@@ -117,7 +117,7 @@ class WikiPage < ApplicationRecord
|
||||
|
||||
module ApiMethods
|
||||
def html_data_attributes
|
||||
[:category_name, [:artist, :id]]
|
||||
[:category_name]
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user