Sha256: 2cd9e481531fe74889b723c61b0cad1a86c3cb4e01bde4e7e65c179d15c203b5

Contents?: true

Size: 501 Bytes

Versions: 32

Compression:

Stored size: 501 Bytes

Contents

require 'rails_admin/config/fields/base'

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

          register_instance_option :view_helper do
            :number_field
          end

          register_instance_option :sort_reverse? do
            serial?
          end
        end
      end
    end
  end
end

Version data entries

32 entries across 32 versions & 2 rubygems

Version Path
rails_admin-2.3.1 lib/rails_admin/config/fields/types/integer.rb
rails_admin-2.3.0 lib/rails_admin/config/fields/types/integer.rb
rails_admin-2.2.1 lib/rails_admin/config/fields/types/integer.rb
rails_admin-2.2.0 lib/rails_admin/config/fields/types/integer.rb
rails_admin-2.1.1 lib/rails_admin/config/fields/types/integer.rb
rails_admin-2.1.0 lib/rails_admin/config/fields/types/integer.rb
rails_admin-2.0.2 lib/rails_admin/config/fields/types/integer.rb
rails_admin-1.4.3 lib/rails_admin/config/fields/types/integer.rb
rails_admin-2.0.1 lib/rails_admin/config/fields/types/integer.rb
rails_admin-2.0.0 lib/rails_admin/config/fields/types/integer.rb
rails_admin-2.0.0.rc lib/rails_admin/config/fields/types/integer.rb
rails_admin-2.0.0.beta lib/rails_admin/config/fields/types/integer.rb
rails_admin-1.4.2 lib/rails_admin/config/fields/types/integer.rb
rails_admin-1.4.1 lib/rails_admin/config/fields/types/integer.rb
rails_admin-1.4.0 lib/rails_admin/config/fields/types/integer.rb
rails_admin-1.3.0 lib/rails_admin/config/fields/types/integer.rb
rails_admin-1.2.0 lib/rails_admin/config/fields/types/integer.rb
rails_admin-1.1.1 lib/rails_admin/config/fields/types/integer.rb
rails_admin-1.1.0 lib/rails_admin/config/fields/types/integer.rb
rails_admin-1.0.0 lib/rails_admin/config/fields/types/integer.rb