Comments (9)
I'm having the same issue. Its really annoying.
from mongoid_token.
I found a simple fix. Put this into your spec_helper.rb
ActiveSupport::Deprecation.silenced = true
from mongoid_token.
Good find. Thanks!
from mongoid_token.
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.
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.
Awesome, thanks for the heads-up.
from mongoid_token.
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.
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.
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)
- Generate tokens for old Documents? HOT 1
- another define_method() issue? HOT 4
- Feature Request: Add rake or inline rails ability to generate tokens
- undefined method `args' in token.rb HOT 1
- Am I using mongoid_token incorrectly? or is this a bug? HOT 4
- Rails Admin has_many relations fail to save HOT 4
- Please specify a licence HOT 2
- Gem naming HOT 1
- not working in embed document? HOT 2
- Can i use token as foreign key? HOT 4
- Readme should say `bundle install` not `bundle update` HOT 1
- Cannot ensure unique token on embeded documents HOT 3
- Is there any plans for mongoid 5? HOT 2
- Is there a way to generate token without saving the actual document
- Feature Request: allow regenerate_token HOT 2
- Class.clone yields NoMethodError HOT 3
- Allow Mongoid 5.1
- Mongoid 6 support HOT 3
- uninitialized constant Mongoid::Token::Collisions
- Feature: Human friendly token generation (Idiot proof)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mongoid_token.