Sha256: 47a35fdae0b53d568ecf871bfacad0aa444c84b494ee52a7e2b62edbbb213be3

Contents?: true

Size: 599 Bytes

Versions: 12

Compression:

Stored size: 599 Bytes

Contents

# frozen_string_literal: true

require 'rails_admin/config/fields/base'

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

          register_instance_option :filter_operators do
            %w[default between] + (required? ? [] : %w[_separator _not_null _null])
          end

          register_instance_option :view_helper do
            :number_field
          end
        end
      end
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

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