Class: ActionDispatch::Routing::Mapper

Inherits:
Object
  • Object
show all
Defined in:
lib/rails/routes.rb

Instance Method Summary collapse

Instance Method Details

#mount_rails_db_info(options = {}) ⇒ Object

Includes mount_rails_db_info method for routes. This method is responsible to generate all needed routes for rails_db_info



5
6
7
# File 'lib/rails/routes.rb', line 5

def mount_rails_db_info(options = {})
  mount RailsDbInfo::Engine => "/rails/info/db", as: options[:as] || 'rails_db_info'
end