def set_defaults_for model
      options[:page] = 1
      options[:per_page] ||= 10
      options[:name] ||= model.to_s.downcase
      options[:order] ||= 'created_at ASC'
      self.name = options[:name]
    end
def set_defaults_for model
      options[:page] = 1
      options[:per_page] ||= 10
      options[:name] ||= model.to_s.downcase
      options[:order] ||= 'created_at ASC'
      self.name = options[:name]
    end
set defaults for options