Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how can i disable automatic mounting to rails routes? #4

Closed
mkhairi opened this issue Oct 21, 2015 · 6 comments
Closed

how can i disable automatic mounting to rails routes? #4

mkhairi opened this issue Oct 21, 2015 · 6 comments

Comments

@mkhairi
Copy link

mkhairi commented Oct 21, 2015

i want manually mount rails_db engine to specific routes.

authenticated :user, lambda {|u| u.super_user? }  do
     mount RailsDb::Engine => "/rails/db", as: 'rails_db'
end
@igorkasyanchuk
Copy link
Owner

I'll investigate this case, maybe some configuration will be added
But what I plan to do in near few days is to add HTTP_BASIC auth to access Rails DB console.
So you can access it with some login/password

@mkhairi
Copy link
Author

mkhairi commented Oct 22, 2015

okay, nice! 👍

@igorkasyanchuk
Copy link
Owner

Added (see doc)

enabled - enable of disable gem (by default this gem is enabled only in development mode).
http_basic_authentication_enabled - Enable HTTP_BASIC authentication.
http_basic_authentication_user_name - HTTP_BASIC authentication user name.
http_basic_authentication_password - HTTP_BASIC authentication password.

in latest version

@mkhairi
Copy link
Author

mkhairi commented Oct 23, 2015

👍 for authentication!
but, i think it still need option be able on/off automatic mounting route. in some cases there are people use constraints rule in routes. :)

@igorkasyanchuk
Copy link
Owner

New version of Rails DB gem is available 0.4.

Changes:

  • autocomplete for SQL
  • ajax-ified views a little
  • data-tables to show content of your tables/sql inside your Apps (embed them)
  • option to disable automatic routes mounting

Please don't forget to share link with your friends. I need to have more feedback. Thanks

@igorkasyanchuk
Copy link
Owner

Please check now version 0.5.1, it has one more option - verify_access_proc, maybe it will help you too

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants