You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
On ruby 2.3.8, I get the following error when trying to annotate (latest version):
NoMethodError: undefined method match?' for /^(true|t|yes|y|1)$/i:Regexp Did you mean? match /usr/local/bundle/gems/annotate-3.1.0/lib/annotate/helpers.rb:18:in true?'
Commands
bin/rake annotate_models
Version
annotate 3.1.0
rails 4.1.16
ruby 2.3.8
The fix
I simply added the following monkey patch in an initializer:
ifRails.env.development?require'annotate'classAnnotate::Helpersclass << selfdeftrue?(val)val.present? && val =~ Annotate::Constants::TRUE_REendendendend
Seems unnecessary to have to
The text was updated successfully, but these errors were encountered:
On ruby 2.3.8, I get the following error when trying to annotate (latest version):
Commands
Version
The fix
I simply added the following monkey patch in an initializer:
Seems unnecessary to have to
The text was updated successfully, but these errors were encountered: