Module: Queries

Defined in:
lib/queries.rb,
lib/queries/source_filter_query.rb,
lib/queries/content_filter_query.rb,
lib/queries/otu_autocomplete_query.rb,
lib/queries/tag_autocomplete_query.rb,
lib/queries/document_autocomplete_query.rb,
lib/queries/taxon_name_autocomplete_query.rb,
lib/queries/repository_autocomplete_query.rb,
lib/queries/collection_object_filter_query.rb,
lib/queries/type_material_autocomplete_query.rb,
lib/queries/geographic_area_autocomplete_query.rb,
lib/queries/collecting_event_autocomplete_query.rb,
lib/queries/collecting_event_lat_long_extractor_query.rb,
lib/queries/controlled_vocabulary_term_autocomplete_query.rb,
lib/queries/biological_collection_object_autocomplete_query.rb

Overview

See

http://www.slideshare.net/camerondutro/advanced-arel-when-activerecord-just-isnt-enough
https://github.com/rails/arel
http://robots.thoughtbot.com/using-arel-to-compose-sql-queries
https://github.com/rails/arel/blob/master/lib/arel/predications.rb
And this:
  http://blog.arkency.com/2013/12/rails4-preloading/
  User.includes(:addresses).where("addresses.country = ?", "Poland").references(:addresses)

TODO: Define #all as a stub (Array or AR)

Defined Under Namespace

Classes: BiologicalCollectionObjectAutocompleteQuery, CollectingEventAutocompleteQuery, CollectingEventLatLongExtractorQuery, CollectionObjectFilterQuery, ContentFilterQuery, ControlledVocabularyTermAutocompleteQuery, DocumentAutocompleteQuery, GeographicAreaAutocompleteQuery, OtuAutocompleteQuery, Query, RepositoryAutocompleteQuery, SourceFilterQuery, TagAutocompleteQuery, TaxonNameAutocompleteQuery, TypeMaterialAutocompleteQuery