Sha256: a3541485841dec8243bd5b3714476b2657a1bd6fe6d2f8d7fa58c83c44117491

Contents?: true

Size: 555 Bytes

Versions: 1

Compression:

Stored size: 555 Bytes

Contents

module WashOutFork
  module Model
    def wash_out_fork_columns
      columns_hash
    end

    def wash_out_fork_param_map
      types = {
        :text      => :string,
        :float     => :double,
        :decimal   => :double,
        :timestamp => :string
      }
      map = {}

      wash_out_fork_columns.each do |key, column|
        type = column.type
        type = types[type] if types.has_key?(type)
        map[key] = type
      end

      map
    end

    def wash_out_fork_param_name(*args)
      return name.underscore
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
wash_out_fork-0.0.1 lib/wash_out_fork/model.rb