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

Bullet without Rails? #71

Closed
amrnt opened this issue Aug 11, 2012 · 8 comments
Closed

Bullet without Rails? #71

amrnt opened this issue Aug 11, 2012 · 8 comments
Labels

Comments

@amrnt
Copy link

amrnt commented Aug 11, 2012

I'm trying to use Bullet without Rails ie Rack, Sinatra, Grape.
Any solution for that?

@flyerhzm
Copy link
Owner

hmmm...maybe I will add support in the future.

@lucasefe
Copy link

This would be very useful. I mean, very.

@flyerhzm
Copy link
Owner

I assumed it already works, you can add Bullet::Rack to your rack middlewares

@ddoherty03
Copy link

Me too! I am writing a gem that uses activerecord without rails and would love to have bullet work with it.

Could you elaborate on "you can add Bullet::Rack to your rack middlewares". Does that not have something to do with running a server, or am I missing something?

Regards,

@flyerhzm
Copy link
Owner

I have released bullet version 4.6.0, which supports sinatra + AR well, it should work well with other rack based web framework.

You should add configs in config.ru

require "bullet"

Bullet.enable = true
Bullet.bullet_logger = true
Bullet.console = true

use Bullet::Rack

@destroytoday
Copy link

Any chance of supporting Sequel for those who don't use ActiveRecord?

@flyerhzm
Copy link
Owner

flyerhzm commented Aug 4, 2014

@destroytoday I'd like to support Sequel, but I don't have any experience of Sequel yet, will see if we can get some contracts using Sequel.

@destroytoday
Copy link

Here's documentation on Sequel for Active Record users:
http://sequel.jeremyevans.net/rdoc/files/doc/active_record_rdoc.html

On Sun, Aug 3, 2014 at 8:28 PM, Richard Huang [email protected]
wrote:

@destroytoday https://github.com/destroytoday I'd like to support
Sequel, but I don't have any experience of Sequel yet, will see if we can
get some contracts using Sequel.


Reply to this email directly or view it on GitHub
#71 (comment).

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

No branches or pull requests

5 participants