Sha256: d5064a7e50dffc0b7b83fbfd1f4cd38263c1f543e62f96d84f0074605f6e073c

Contents?: true

Size: 531 Bytes

Versions: 13

Compression:

Stored size: 531 Bytes

Contents

# frozen_string_literal: true

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

module RailsAdmin
  module Config
    module Fields
      module Types
        class Decimal < 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

13 entries across 13 versions & 1 rubygems

Version Path
rails_admin-3.3.0 lib/rails_admin/config/fields/types/decimal.rb
rails_admin-3.2.1 lib/rails_admin/config/fields/types/decimal.rb
rails_admin-3.2.0 lib/rails_admin/config/fields/types/decimal.rb
rails_admin-3.2.0.rc lib/rails_admin/config/fields/types/decimal.rb
rails_admin-3.2.0.beta lib/rails_admin/config/fields/types/decimal.rb
rails_admin-3.1.4 lib/rails_admin/config/fields/types/decimal.rb
rails_admin-3.1.3 lib/rails_admin/config/fields/types/decimal.rb
rails_admin-3.1.2 lib/rails_admin/config/fields/types/decimal.rb
rails_admin-3.1.1 lib/rails_admin/config/fields/types/decimal.rb
rails_admin-3.1.0 lib/rails_admin/config/fields/types/decimal.rb
rails_admin-3.1.0.rc2 lib/rails_admin/config/fields/types/decimal.rb
rails_admin-3.1.0.rc lib/rails_admin/config/fields/types/decimal.rb
rails_admin-3.1.0.beta lib/rails_admin/config/fields/types/decimal.rb