Add support to choose the sheet within google spreadsheets

This commit is contained in:
bumi committed 2020-06-10 15:50:15 +02:00
1 parent 7eb0ca6753
commit e64fa197aa
6 files changed
+91 -71

No files matched your search

+3 -2
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)