lib/sequel/plugins/boolean_readers.rb in sequel-4.18.0 vs lib/sequel/plugins/boolean_readers.rb in sequel-4.19.0

- old
+ new

@@ -38,10 +38,10 @@ private # Add a attribute? method for the column to a module included in the class. def create_boolean_reader(column) overridable_methods_module.module_eval do - define_method("#{column}?"){model.db.typecast_value(:boolean, send(column))} + define_method("#{column}?"){model.db.typecast_value(:boolean, get_column_value(column))} end end # Add attribute? methods for all of the boolean attributes for this model. def create_boolean_readers