* VRFS-1505 - adding sorting to genres in controller
This commit is contained in:
parent
b603d7d253
commit
770d0acd42
|
|
@ -6,7 +6,7 @@ class ApiGenresController < ApiController
|
|||
respond_to :json
|
||||
|
||||
def index
|
||||
@genres = Genre.find(:all)
|
||||
@genres = Genre.order(:description)
|
||||
end
|
||||
|
||||
def show
|
||||
|
|
|
|||
Loading…
Reference in New Issue