Module: MassiveRecord::ORM::RescueMissingTableOnFind
- Defined in:
- lib/massive_record/orm/finders/rescue_missing_table_on_find.rb
Overview
Module which adds functionality so we rescue errors which might occur on find calls when we are querying tables which does not exist. Small problem with this, which will need to look into.
Instance Method Summary collapse
Instance Method Details
#do_find(*args) ⇒ Object
9 10 11 |
# File 'lib/massive_record/orm/finders/rescue_missing_table_on_find.rb', line 9 def do_find(*args) create_table_and_retry_if_table_missing { super } end |
#find_in_batches(*args) ⇒ Object
13 14 15 |
# File 'lib/massive_record/orm/finders/rescue_missing_table_on_find.rb', line 13 def find_in_batches(*args) create_table_and_retry_if_table_missing { super } end |