Sha256: 59b0fca749e638658d11a8a2cfed94b53d8f8e384692e38d8559c8f0736cb6f2

Contents?: true

Size: 470 Bytes

Versions: 8

Compression:

Stored size: 470 Bytes

Contents

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
          end
        end
        
        def column?
          !column.nil?
        end
        
      end
    end
  end
end

Version data entries

8 entries across 8 versions & 3 rubygems

Version Path
date_n_time_picker_activeadmin-0.1.2 vendor/bundle/ruby/2.6.0/gems/formtastic-4.0.0/lib/formtastic/inputs/base/database.rb
date_n_time_picker_activeadmin-0.1.1 vendor/bundle/ruby/2.6.0/gems/formtastic-4.0.0/lib/formtastic/inputs/base/database.rb
formtastic-4.0.0 lib/formtastic/inputs/base/database.rb
formtastic-4.0.0.rc1 lib/formtastic/inputs/base/database.rb
formtastic-3.1.5 lib/formtastic/inputs/base/database.rb
ish_lib_manager-0.0.1 test/dummy/vendor/bundle/ruby/2.3.0/gems/formtastic-3.1.4/lib/formtastic/inputs/base/database.rb
formtastic-3.1.4 lib/formtastic/inputs/base/database.rb
formtastic-3.1.3 lib/formtastic/inputs/base/database.rb