Skip to content

can not show boolean field with false #1557

Closed
sungil opened this Issue Mar 6, 2013 · 1 comment

2 participants

@sungil
sungil commented Mar 6, 2013

I am using rails_admin(0.4.5) with mongoid(3.1.2)
By the way I can see the boolean field with any value in the list view page.
And I can see the boolean field with true in the show view page.
But I can't see the boolean field with false in the show view page.
Why does not show the boolean field with false?

@mshibuya
Collaborator

This behavior comes from here:

     - if !(values = fields.map{ |f| f.value.presence }).compact.empty? || !RailsAdmin::config.compact_show_view

Blank values are just ignored in show view.
Setting

RailsAdmin.config do |config|
  config.compact_show_view = false
end

will cancel it.

@mshibuya mshibuya closed this Jun 23, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.