module RailsAdmin::Config::HasGroups

Public Instance Methods

visible_groups() click to toggle source
# File lib/enjoy/rails_admin_ext/patches/group_patch.rb, line 28
def visible_groups
  parent.groups.collect { |f|
    f.section = self
    f.with(bindings)
  }.select(&:visible?).select { |g|
    g.visible_fields.present?
  }.sort do |a, b|
    a.weight <=> b.weight
  end
end