moved some donmai-specific stuff out of default config

This commit is contained in:
albert
2010-11-19 13:44:11 -05:00
parent 190beedb7a
commit a156cc8c62
11 changed files with 89 additions and 43 deletions

View File

@@ -2,8 +2,8 @@ class ArtistVersionsController < ApplicationController
respond_to :html, :xml, :json
def index
@artist = Artist.find(params[:artist_id])
@artist_versions = ArtistVersion.paginate :order => "version desc", :per_page => 25, :page => params[:page], :conditions => ["artist_id = ?", @artist.id]
@search = Artist.search(params[:search])
@artist_versions = @search.paginate :order => "version desc", :per_page => 25, :page => params[:page]
respond_with(@artist_versions)
end
end