Sha256: 3a1ca5dbb74dd938df39374665ac8c887dd5d76932fd453b12bccce8cd3d708e

Contents?: true

Size: 336 Bytes

Versions: 1

Compression:

Stored size: 336 Bytes

Contents

# frozen_string_literal: true
module Formtastic
  module Inputs
    module Base
      module Database

        def column
          if object.respond_to?(:column_for_attribute)
            object.column_for_attribute(method)
          end
        end

        def column?
          !column.nil?
        end

      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
formtastic-5.0.0 lib/formtastic/inputs/base/database.rb