Sha256: b19c8e2d6be9359c31860a6d3dab3d3320a29917982d73af8948b3f339019a39

Contents?: true

Size: 540 Bytes

Versions: 6

Compression:

Stored size: 540 Bytes

Contents

begin
  require 'rails_admin/adapters/mongoid'
  begin
    require 'rails_admin/adapters/mongoid/property'
  rescue Exception => e 
  end
  
  module RailsAdmin
    module Adapters
      module Mongoid
        class Property
          alias_method :type_without_russian_phone, :type
          def type
            if property.type.class.name == "RussianPhone::Field"
              :string
            else
              type_without_russian_phone
            end
          end
        end
      end
    end
  end
rescue Exception => e 
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
russian_phone-0.8.0 lib/russian_phone/rails_admin.rb
russian_phone-0.7.0 lib/russian_phone/rails_admin.rb
russian_phone-0.6.1 lib/russian_phone/rails_admin.rb
russian_phone-0.6.0 lib/russian_phone/rails_admin.rb
russian_phone-0.5.3 lib/russian_phone/rails_admin.rb
russian_phone-0.5.2 lib/russian_phone/rails_admin.rb