tests: fixup tests.
This commit is contained in:
@@ -21,7 +21,8 @@ class TagsController < ApplicationController
|
||||
@tags = Tag.names_matches_with_aliases(params[:search][:name_matches])
|
||||
end
|
||||
|
||||
respond_with(@tags, root: "tags")
|
||||
# XXX
|
||||
respond_with(@tags.map(&:attributes))
|
||||
end
|
||||
|
||||
def show
|
||||
|
||||
@@ -235,6 +235,7 @@ class ApplicationRecord < ActiveRecord::Base
|
||||
end
|
||||
|
||||
def serializable_hash(options = {})
|
||||
options ||= {}
|
||||
options[:only] ||= []
|
||||
options[:include] ||= []
|
||||
options[:methods] ||= []
|
||||
|
||||
Reference in New Issue
Block a user