Sha256: 41cdefe6f0a43999ab3c0b845316c0bcfd7c8e3798490d0512ff939b5ce43c74

Contents?: true

Size: 915 Bytes

Versions: 3

Compression:

Stored size: 915 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 http basic authentication
    # 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.2 lib/generators/templates/rails_db.rb
rails_db-2.4.1 lib/generators/templates/rails_db.rb
rails_db-2.4.0 lib/generators/templates/rails_db.rb