Sha256: be393f1c38ad00e6491a409c343f1597599bc57bc74c22b8fbddd3ee46c855f1

Contents?: true

Size: 268 Bytes

Versions: 2

Compression:

Stored size: 268 Bytes

Contents

require "sequel/enhancements"

module Sequel
  module Plugins
    module StringCleaner
      def self.apply(model, *args)
        model.plugin(:input_transformer, :string_cleaner) do |v|
          Enhancements.trim_invisible(v)
        end
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
sequel-enhancements-0.3.0 lib/sequel/plugins/string_cleaner.rb
sequel-enhancements-0.2.0 lib/sequel/plugins/string_cleaner.rb