There is code that assumes that @field_names will contain symbols, like this method in ActiveHash::Base:
def respond_to?(method_name, include_private=false)
super ||
begin
config = configuration_for_custom_finder(method_name)
config && config[:fields].all? do |field|
field_names.include?(field.to_sym) || field.to_sym == :id
end
end
end
This also introduces an explicit test for #field_names.
There is code that assumes that
@field_names
will contain symbols, like this method in ActiveHash::Base:This also introduces an explicit test for
#field_names
.