lib/formtastic/inputs/base/database.rb in formtastic-3.1.2 vs lib/formtastic/inputs/base/database.rb in formtastic-3.1.3
- old
+ new
@@ -2,16 +2,21 @@
module Inputs
module Base
module Database
def column
- object.column_for_attribute(method) if object.respond_to?(:column_for_attribute)
+ 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
+ end
end
def column?
!column.nil?
end
end
end
end
-end
\ No newline at end of file
+end