add strip_attributes

converts empty string to nil on the user model
so unique indexes with null: true will not break
This commit is contained in:
jomo
2015-08-26 02:54:51 +02:00
parent 20d31494dc
commit 9edbdb7d55
4 changed files with 6 additions and 2 deletions
+1
View File
@@ -6,6 +6,7 @@ gem 'mysql2'
gem 'jquery-rails'
gem 'bcrypt-ruby' # To use ActiveModel's has_secure_password
gem 'sanitize'
gem 'strip_attributes'
gem 'redcarpet', '~> 3.2.3'
gem 'hirb' # pretty console output
gem 'rb-readline'