Sha256: 1ececabb58d96d85b943a34f48ecbfce14bb353b5d28dfebea6c4e17f3258d6c

Contents?: true

Size: 503 Bytes

Versions: 13

Compression:

Stored size: 503 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

13 entries across 13 versions & 4 rubygems

Version Path
rails_admin-0.1.2 lib/rails_admin/config/fields/types/integer.rb
rails_admin-0.1.1 lib/rails_admin/config/fields/types/integer.rb
rails_admin-0.1.0 lib/rails_admin/config/fields/types/integer.rb
rails_admin-0.0.5 lib/rails_admin/config/fields/types/integer.rb
rails_admin-0.0.4 lib/rails_admin/config/fields/types/integer.rb
rails_admin-0.0.3 lib/rails_admin/config/fields/types/integer.rb
rails_admin-0.0.2 lib/rails_admin/config/fields/types/integer.rb
upstream-rails_admin-1.0.2 lib/rails_admin/config/fields/types/integer.rb
rails_admin-0.0.1 lib/rails_admin/config/fields/types/integer.rb
obitum-rails_admin-0.0.5 lib/rails_admin/config/fields/types/integer.rb
drewda_rails_admin-0.0.1 lib/rails_admin/config/fields/types/integer.rb
obitum-rails_admin-0.0.4 lib/rails_admin/config/fields/types/integer.rb
obitum-rails_admin-0.0.3 lib/rails_admin/config/fields/types/integer.rb