Sha256: 14c94002ff0cce8c99826fbd01a98aaed2ece649ffff42f33e4abe03f0e553e5

Contents?: true

Size: 498 Bytes

Versions: 7

Compression:

Stored size: 498 Bytes

Contents

require 'rails_admin/config/fields/types/numeric'

module RailsAdmin
  module Config
    module Fields
      module Types
        class Float < RailsAdmin::Config::Fields::Types::Numeric
          # Register field type for the type loader
          RailsAdmin::Config::Fields::Types.register(self)

          register_instance_option :html_attributes do
            {
              required: required?,
              step: 'any',
            }
          end
        end
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
rails_admin-3.0.0 lib/rails_admin/config/fields/types/float.rb
rails_admin-3.0.0.rc4 lib/rails_admin/config/fields/types/float.rb
rails_admin-3.0.0.rc3 lib/rails_admin/config/fields/types/float.rb
rails_admin-3.0.0.rc2 lib/rails_admin/config/fields/types/float.rb
rails_admin-3.0.0.rc lib/rails_admin/config/fields/types/float.rb
rails_admin-3.0.0.beta2 lib/rails_admin/config/fields/types/float.rb
rails_admin-3.0.0.beta lib/rails_admin/config/fields/types/float.rb