Module: AdminPanelHelpers

Included in:
PixelearthBase::ApplicationHelper
Defined in:
app/helpers/admin_panel_helpers.rb

Instance Method Summary collapse

Instance Method Details

#model_infoObject



2
3
4
5
6
7
8
9
10
11
# File 'app/helpers/admin_panel_helpers.rb', line 2

def model_info
  app_models.collect do |m|
    link_txt  = m.to_s.pluralize.underscore.humanize
    link_path = m.to_s.underscore.pluralize + "_path"

    if respond_to? link_path
      [ link_txt, link_path ]
    end
  end.compact
end