Sha256: 8827c920ca77698db20ed1e70374960648bfaf1f599756dff498fc0e7f3ee2dc

Contents?: true

Size: 909 Bytes

Versions: 3

Compression:

Stored size: 909 Bytes

Contents

if Object.const_defined?('RailsDb')
  RailsDb.setup do |config|
    # # enabled or not
    # config.enabled = Rails.env.development?

    # # automatic engine routes mounting
    # config.automatic_routes_mount = true

    # set tables which you want to hide ONLY
    # config.black_list_tables = ['users', 'accounts']

    # set tables which you want to show ONLY
    # config.white_list_tables = ['posts', 'comments']

    # # Enable http basic authentication
    # config.http_basic_authentication_enabled = false

    # # Enable http basic authentication
    # config.http_basic_authentication_user_name = 'rails_db'

    # # Enable http basic authentication
    # config.http_basic_authentication_password = 'password'

    # # Enable verify access proc
    # config.verify_access_proc = proc { |controller| true }

    # # Sandbox mode (only read-only operations)
    # config.sandbox = false
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
rails_db-2.4.5 lib/generators/templates/rails_db.rb
rails_db-2.4.4 lib/generators/templates/rails_db.rb
rails_db-2.4.3 lib/generators/templates/rails_db.rb