Module: RailsAdmin::Config::HasGroups
- Defined in:
- lib/hancock/rails_admin_ext/patches/group_patch.rb
Instance Method Summary collapse
Instance Method Details
#visible_groups ⇒ Object
37 38 39 40 41 42 43 44 45 46 |
# File 'lib/hancock/rails_admin_ext/patches/group_patch.rb', line 37 def visible_groups parent.groups.collect { |f| f.section = self f.with(bindings) }.select { |g| g.visible? and g.visible_fields.present? }.sort do |a, b| a.weight <=> b.weight end end |