Module: Formtastic::Inputs::Base::Database

Included in:
Formtastic::Inputs::Base
Defined in:
lib/formtastic/inputs/base/database.rb

Instance Method Summary collapse

Instance Method Details

#columnObject



6
7
8
# File 'lib/formtastic/inputs/base/database.rb', line 6

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

#column?Boolean

Returns:

  • (Boolean)


10
11
12
# File 'lib/formtastic/inputs/base/database.rb', line 10

def column?
  !column.nil?
end