Module: AirtableSync

Defined in:
app/models/concerns/airtable_sync/callbacks.rb,
lib/airtable_sync.rb,
lib/airtable_sync/engine.rb,
lib/airtable_sync/railtie.rb,
lib/airtable_sync/version.rb,
app/services/airtable_sync/api.rb,
lib/airtable_sync/configuration.rb,
app/jobs/airtable_sync/initial_sync_job.rb,
app/jobs/airtable_sync/create_record_job.rb,
app/jobs/airtable_sync/update_record_job.rb,
app/jobs/airtable_sync/destroy_record_job.rb,
app/models/concerns/airtable_sync/record_sync.rb,
lib/generators/airtable_sync/install_generator.rb,
lib/generators/airtable_sync/connection_generator.rb

Overview

Synchronizes any changes to public records to AirTable

Defined Under Namespace

Modules: Callbacks, Generators, RecordSync Classes: Api, Configuration, CreateRecordJob, DestroyRecordJob, Engine, InitialSyncJob, Railtie, UpdateRecordJob

Constant Summary collapse

VERSION =
'1.4.1'

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.configurationObject

Returns the value of attribute configuration.



5
6
7
# File 'lib/airtable_sync/configuration.rb', line 5

def configuration
  @configuration
end

Class Method Details

.configure {|self.configuration| ... } ⇒ Object

Yields:



7
8
9
10
11
12
13
14
15
# File 'lib/airtable_sync/configuration.rb', line 7

def configure
  self.configuration ||= Configuration.new

  self.configuration.skip_airtable_sync = !Rails.env.production?

  yield(self.configuration)

  self.configuration.api_key ||= ENV.fetch('AIRTABLE_API_KEY')
end