| require_gem "SimpleSearch" |
| |
| #--###################################################################### |
| # Copyright (c) 2006 LogicaCMG |
| # |
| # All rights reserved. This program and the accompanying materials |
| # are made available under the terms of the Eclipse Public License v1.0 |
| # which accompanies this distribution, and is available at |
| # http://www.eclipse.org/legal/epl-v10.html |
| # |
| # Contributors: |
| # |
| # Onno van der Straaten:: initial implementation |
| #++###################################################################### |
| # {Copyright (c) 2006 LogicaCMG}[link:files/COPYRIGHT.html] |
| |
| class ActiveRecord::Base |
| |
| def self.make_searchable(list_of_field_symbols) |
| @searchable_fields = list_of_field_symbols |
| end |
| |
| def self.searchable_fields |
| @searchable_fields |
| end |
| |
| end |
| |
| class MockContents |
| def latest_mtime |
| Time.at(0) |
| end |
| end |
| |