Bullet without Rails? #71

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

Projects

None yet

5 participants

@amrnt
amrnt commented Aug 11, 2012

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

@flyerhzm
Owner

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

@lucasefe

This would be very useful. I mean, very.

@flyerhzm
Owner

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

@ddoherty03

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
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
@flyerhzm flyerhzm closed this Apr 17, 2013
@destroytoday

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

@flyerhzm
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

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 notifications@github.com
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