-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Made changes to tests and test fixtures, database seeds in seeds.rb, …
…added re-usable scoped queries to models. modified: app/controllers/home_controller.rb -- this was just for testing, ignore modified: app/models/audio_event_tag.rb modified: app/models/audio_recording.rb modified: app/models/project.rb modified: app/models/site.rb -- added scoped queries that can be composed and re-used modified: config/application.rb -- added time threshold for automatically printing sql explain modified: db/development_seeds.rb modified: db/schema.rb modified: db/seeds.rb -- fixed up some errors in seed data modified: lib/search.rb -- added execute and querystring methods modified: test/fixtures/bookmarks.yml modified: test/fixtures/progresses.yml modified: test/fixtures/saved_searches.yml -- fixed errors in test fixtures new file: test/unit/class_search_test.rb -- added test for search class
- Loading branch information
Showing
6 changed files
with
71 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,9 @@ | ||
class HomeController < ApplicationController | ||
def index | ||
#the_search = Search.new( { :body_params => { :project_ids => [ 4 ],:site_ids => [ ],:audio_recording_ids => [ ] } } ) | ||
#params[:test1] = the_search | ||
#params[:test2] = the_search.execute_query.all | ||
|
||
#raise RuntimeError | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters