lib/generators/dbhero/install/templates/dbhero.rb
Dbhero.configure do |config|
# max rows to show, if the number of rows on query result is greater of
# configuration then should display a button to download csv
# default value: 10000
# config.max_rows_limit = 10_000
# if you are using devise you can keep the "authenticate_user!"
config.authenticate = true
# Method to get the current user authenticated on your app
# if you are using devise you can keep the "current_user"
config.current_user_method = :current_user
# uncomment to use custom user auth
# config.custom_user_auth_condition = lambda do |user|
# user.admin?
# end
# String representation for user
# when creating a dataclip just save on user field
config.user_representation = :email
# Google drive integration, uncomment to use ;)
# you can get you google api credentials here:
# https://developers.google.com/drive/web/auth/web-server
#
# config.google_api_id = 'GOOGLE_API_ID'
# config.google_api_secret = 'GOOGLE_API_SECRET'
end