Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

swap "ActiveSupport::SecureRandom" with "SecureRandom", per deprecation n #12

Open
wants to merge 1 commit into from

2 participants

@jamescallmebrent

fix for the following deprecation warning under Rails 3.1:
"DEPRECATION WARNING: ActiveSupport::SecureRandom is deprecated! Use SecureRandom instead."

@juanibiapina

Is this still being maintained?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
This page is out of date. Refresh to see the latest.
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/supermodel/random_id.rb
View
2  lib/supermodel/random_id.rb
@@ -2,7 +2,7 @@ module SuperModel
module RandomID
protected
def generate_id
- ActiveSupport::SecureRandom.hex(13)
+ SecureRandom.hex(13)
end
end
end
Something went wrong with that request. Please try again.