lib/formtastic/inputs/base/database.rb in formtastic-4.0.0 vs lib/formtastic/inputs/base/database.rb in formtastic-5.0.0

- old
+ new

@@ -1,22 +1,20 @@ +# frozen_string_literal: true module Formtastic module Inputs module Base module Database - + def column if object.respond_to?(:column_for_attribute) - # Remove deprecation wrapper & review after Rails 5.0 ships - ActiveSupport::Deprecation.silence do - object.column_for_attribute(method) - end + object.column_for_attribute(method) end end - + def column? !column.nil? end - + end end end end