show_json_format format
end
end
-
+
def history
set_show
- @history = @item.history
+ @finder = @my_action.finder(param: params[:id]).page(1).per(-1)
respond_to do |format|
format.html
- format.json { render json: @history.to_json }
+ list_json_format @finder, format
end
end