We're trying to be consistent; in the past, we had the partials "shared/admin_login_items", "layouts/notification_item" and "devise/menu/login_items". Now we're moving all these partials to components in the `Layout` namespace.
9 lines
174 B
Ruby
9 lines
174 B
Ruby
class Layout::LoginItemsComponent < ApplicationComponent
|
|
attr_reader :user
|
|
delegate :layout_menu_link_to, to: :helpers
|
|
|
|
def initialize(user)
|
|
@user = user
|
|
end
|
|
end
|