Code Monkey home page Code Monkey logo

Comments (9)

bendangelo avatar bendangelo commented on September 27, 2024

I'm having the same issue. Its really annoying.

from mongoid_token.

bendangelo avatar bendangelo commented on September 27, 2024

I found a simple fix. Put this into your spec_helper.rb

ActiveSupport::Deprecation.silenced = true

from mongoid_token.

impact11 avatar impact11 commented on September 27, 2024

Good find. Thanks!

from mongoid_token.

benoberkfell avatar benoberkfell commented on September 27, 2024

Have you folks been able to locate where ActiveSupport::SecureRandom is getting called?

SecureRandom was removed in Rails 3.2 and so my app is crashing now whenever I try to generate a token. I have not been able to determine though where this call is getting made so I could correct it, though.

from mongoid_token.

bendangelo avatar bendangelo commented on September 27, 2024

Someone has already fixed the issue in an other branch. Its currently in the pull request state.

The branch is here: https://github.com/jamesotron/mongoid_token/tree/rails-3-2

I ended up putting this in my gemfile for now.

gem 'mongoid_token, :git=>'https://github.com/jamesotron/mongoid_token/tree/rails-3-2'

That fixes it for now.

from mongoid_token.

benoberkfell avatar benoberkfell commented on September 27, 2024

Awesome, thanks for the heads-up.

from mongoid_token.

thetron avatar thetron commented on September 27, 2024

Hey everyone - don't know what was up with Github notifications, but I seemed to have missed this entire thread. I've been completely bogged down with an iOS project at the moment, but am going to try and get as many of these peskier issues sorted as possible.

from mongoid_token.

thetron avatar thetron commented on September 27, 2024

Also, apologies for the delays with updating this gem - i've been dipping in-and-out of this issue for the past few months, trying to optimise the token collision handler, hopefully I can crack this one soon and push out a proper release. Thanks for your patience.

from mongoid_token.

thetron avatar thetron commented on September 27, 2024

Just to update, this SecureRandom references were pulled as part of this pull request, but never released because of issues with token regeneration/collision detection.

I have just finished all the updates, will be updating the readme and pushing a release out very shortly.

from mongoid_token.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.