mirror of
https://github.com/System-End/shipment-viewer.git
synced 2026-04-19 22:05:10 +00:00
don't hit AT if no table name
This commit is contained in:
parent
f2ab2e3db3
commit
888a1ddb8e
1 changed files with 4 additions and 0 deletions
|
|
@ -12,6 +12,10 @@ Norairrecord.base_url = ENV["AIRTABLE_BASE_URL"] if ENV["AIRTABLE_BASE_URL"]
|
|||
|
||||
class Shipment < Norairrecord::Table
|
||||
class << self
|
||||
def records(**args)
|
||||
return [] unless table_name
|
||||
super
|
||||
end
|
||||
def base_key
|
||||
ENV["AIRTABLE_BASE"];
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue