issue while installing rails_admin gem in ruby on rails
if we get the error while installing rails_admin for the error
lib/rails_admin/config/fields/types.rb:11:in `load': Unsupported field datatype: binary (RuntimeError)
we have to follow below code in config/initializers/rails_admin.rb
since I don't display the binary field I put this monkey patch in my initializer:
module RailsAdmin module Config module Fields module Types def self.load(type) return @@registry[:text] if (type.to_sym == :binary) @@registry[type.to_sym] or raise "Unsupported field datatype: #{type}" end end end end end
Comments
Post a Comment