Sha256: 55c32301f3939a8f59994d441cda97291fce40a53b8589dc70ff9e0b396bbd9f

Contents?: true

Size: 301 Bytes

Versions: 1

Compression:

Stored size: 301 Bytes

Contents

module Support
  module AdapterHelper
    def execute(sql, name = nil)
      sql_statements << sql
      sql
    end

    def sql_statements
      @sql_statements ||= []
    end

    def strip_non_essential_spaces(string_to_strip)
      string_to_strip.gsub(/\s{2,}|\\n/, " ").strip
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
polymorphic_constraints-1.0.0 spec/support/adapter_helper.rb