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
28 29 30 31 32 33 34 35 36 37 |
# File 'lib/hancock/rails_admin_ext/patches/group_patch.rb', line 28 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 |