module OnForm::Types

Public Class Methods

_adapter() click to toggle source
# File lib/on_form/types.rb, line 41
def self._adapter
  @_adapter ||= ActiveRecord::ConnectionAdapters::AbstractAdapter.new(nil)
end
lookup(type, options) click to toggle source
# File lib/on_form/types.rb, line 13
def self.lookup(type, options)
  default = options.delete(:default)
  Type.new(ActiveRecord::Type.lookup(type, options), default)
end