lib/aasm/base.rb in aasm-4.11.1 vs lib/aasm/base.rb in aasm-4.12.0

- old
+ new

@@ -206,10 +206,12 @@ ! ( @state_machine.config.enum && klass.respond_to?(:defined_enums) && klass.defined_enums.values.any?{ |methods| methods.keys{| enum | enum + '?' == method_name } }) - @state_machine.config.logger.warn "#{klass.name}: overriding method '#{method_name}'!" + unless AASM::Configuration.hide_warnings + @state_machine.config.logger.warn "#{klass.name}: overriding method '#{method_name}'!" + end end klass.send(:define_method, method_name, method_definition) end