Can't mass-assign protected attributes for Searchjoy::Search: user_id, source
ACPK opened this issue · 3 comments
ACPK commented
When the application tries to save a search done via Searchkick, i get:
Can't mass-assign protected attributes for Searchjoy::Search: user_id, source
ankane commented
You should be able to create an initializer with:
class Searchjoy::Search
attr_accessible :search_type, :query, :results_count, :custom_field_1, :custom_field_2
end