diff options
-rw-r--r-- | Gemfile | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -27,7 +27,11 @@ gem 'sass-rails', github: 'rails/sass-rails', branch: 'master' # require: false so bcrypt is loaded only when has_secure_password is used. # This is to avoid Active Model (and by extension the entire framework) # being dependent on a binary library. -gem 'bcrypt', '~> 3.1.10', require: false +if Bundler::WINDOWS + gem 'bcrypt-ruby', '~> 3.0.0', require: false +else + gem 'bcrypt', '~> 3.1.10', require: false +end # This needs to be with require false to avoid it being automatically loaded by # sprockets. |