Thursday, 15 May 2014

ruby - TypeError: Cannot visit Mail::Multibyte::Chars -



ruby - TypeError: Cannot visit Mail::Multibyte::Chars -

i update gems on our gemfile , started getting:

irb(main):002:0> user.new(:email => "foob@gmail.com").valid? typeerror: cannot visit mail::multibyte::chars

user model tiene:

validates_uniqueness_of :email

if take validation off, works.

i had same issue in sinatra app , appeared caused mail service gem. able prepare requiring 'active_support' before bundle.require:

require 'active_support' bundler.require(:default, env['rack_env'].to_sym)

ruby

No comments:

Post a Comment