Add support to choose the sheet within google spreadsheets

This commit is contained in:
2020-06-10 15:50:15 +02:00
parent 7eb0ca6753
commit e64fa197aa
6 changed files with 91 additions and 71 deletions

View File

@@ -38,9 +38,10 @@ class Form < ApplicationRecord
backend_name == 'airtable'
end
def google
backend_name == 'google'
def google?
backend_name == 'google_sheets'
end
def google; google?; end # TODO: remove this alias
def backend
@backend ||= SpreadsheetBackends.const_get(backend_name.camelize).new(self)