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
With warnings enabled you'll see that the SupportsFeatureMixin triggers lots of redefinition warnings:
# sf_test.rbrequire'active_support'require'active_support/core_ext/object/blank'require_relative'supports_feature_mixin'# Assume sf_test.rb and supports_feature_mixin.rb are in same directoryclassPostincludeSupportsFeatureMixinsupports:publishsupports_not:migrate,:reason=>'Migrate not supported'endpPost.supports?(:publish)pPost.supports?(:migrate)=begin>ruby -w sf_test.rb/Users/dberger/Programming/Ruby/supports_feature_mixin.rb:264: warning: method redefined; discarding old supports_publish?/Users/dberger/Programming/Ruby/supports_feature_mixin.rb:264: warning: previous definition of supports_publish? was here/Users/dberger/Programming/Ruby/supports_feature_mixin.rb:280: warning: method redefined; discarding old supports_publish?/Users/dberger/Programming/Ruby/supports_feature_mixin.rb:280: warning: previous definition of supports_publish? was here/Users/dberger/Programming/Ruby/supports_feature_mixin.rb:264: warning: method redefined; discarding old supports_migrate?/Users/dberger/Programming/Ruby/supports_feature_mixin.rb:264: warning: previous definition of supports_migrate? was here/Users/dberger/Programming/Ruby/supports_feature_mixin.rb:280: warning: method redefined; discarding old supports_migrate?/Users/dberger/Programming/Ruby/supports_feature_mixin.rb:280: warning: previous definition of supports_migrate? was here=end
The text was updated successfully, but these errors were encountered:
With warnings enabled you'll see that the
SupportsFeatureMixin
triggers lots of redefinition warnings:The text was updated successfully, but these errors were encountered: