app/models/saved_search.rb
# == Schema Information
#
# Table name: saved_searches
#
# id :integer not null, primary key
# user_id :integer
# search_params :text
# created_at :datetime not null
# updated_at :datetime not null
#
# Indexes
#
# index_saved_searches_on_user_id (user_id)
#
class SavedSearch < ActiveRecord::Base
belongs_to :user
serialize :search_params, Hash
PERMITTED_SEARCH_PARAMS = [
:text,
:status,
:category_ids
].freeze
end