Menu's are now generated on demand using the MenuBuilder instead of being created as the resources are registered. MenuItem can now store labels as procs, which allows us to properly i18n all the menu labels at runtime. ActiveAdmin::Resource's are now in charge of building their own MenuItem objects. The controller now stores the instance of the currently selected tab in @current_tag instead of just a string label.
This reverts commit 2907c0f.
…#820) * Resource#resource_name now returns a ActiveModel::Name * Add Resource#resource_label and #plural_resource_label to return a (human readable) label * ActiveAdmin.register Post, :as => "Super Post" would change #resource_label to to "Super Post" and #resource_name to "SuperPost" * The routes are longer translated * Use resource_label instead of resource_name in the html * Add feature
…ny currently selected scope
…ldset and .panel :last-child(ren)
…ing print styles
This method takes something like "author_id" and returns "author". It was failing for the edge case "external_identity_id" because of the extra "_id" in the middle of the string - i.e. it was returning "externalentity". Change the way the substitution is done so that it only matches at the end of the string.
* Also removed loading in application.rb since already loaded