lib/sequel/model.rb in sequel-4.21.0 vs lib/sequel/model.rb in sequel-4.22.0

- old
+ new

@@ -168,8 +168,8 @@ plugin Model::Associations end # The setter methods (methods ending with =) that are never allowed # to be called automatically via +set+/+update+/+new+/etc.. - RESTRICTED_SETTER_METHODS = instance_methods.map{|x| x.to_s}.grep(SETTER_METHOD_REGEXP) + RESTRICTED_SETTER_METHODS = instance_methods.map(&:to_s).grep(SETTER_METHOD_REGEXP) end end