Sha256: 81a50e462da8a5b09e68183b335c2b14b1e270194e2953785908c6f5171ae16b

Contents?: true

Size: 284 Bytes

Versions: 1

Compression:

Stored size: 284 Bytes

Contents

module AdminPanelHelpers
  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
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
pixelearth-3.2.4 app/helpers/admin_panel_helpers.rb