Sha256: 0725f777383872b61877ce6d4a121ba35317310a75dc82a6c6ca259da5c6f7af

Contents?: true

Size: 836 Bytes

Versions: 22

Compression:

Stored size: 836 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 }
  end
end

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
rails_db-2.3.1 lib/generators/templates/rails_db.rb
rails_db-2.3.0 lib/generators/templates/rails_db.rb
rails_db-2.2.1 lib/generators/templates/rails_db.rb
rails_db-2.2.0 lib/generators/templates/rails_db.rb
rails_db-2.1.1 lib/generators/templates/rails_db.rb
rails_db-2.1.0 lib/generators/templates/rails_db.rb
rails_db-2.0.6 lib/generators/templates/rails_db.rb
rails_db-2.0.5 lib/generators/templates/rails_db.rb
rails_db-2.0.4 lib/generators/templates/rails_db.rb
rails_db-2.0.3 lib/generators/templates/rails_db.rb
rails_db-2.0.2 lib/generators/templates/rails_db.rb
rails_db-2.0.1 lib/generators/templates/rails_db.rb
rails_db-2.0.0 lib/generators/templates/rails_db.rb
rails_db-1.6.0 lib/generators/templates/rails_db.rb
rails_db-1.5.0 lib/generators/templates/rails_db.rb
rails_db-1.4.1 lib/generators/templates/rails_db.rb
rails_db-1.4.0 lib/generators/templates/rails_db.rb
rails_db-1.3.4 lib/generators/templates/rails_db.rb
rails_db-1.3.3 lib/generators/templates/rails_db.rb
rails_db-1.3.2 lib/generators/templates/rails_db.rb