2 changed files with 60 additions and 55 deletions
@ -1,5 +1,8 @@ |
|||||||
class SidenavComponent < BaseComponent |
class SidenavComponent < BaseComponent |
||||||
def initialize(current_user:) |
attr_reader :current_user, :opts |
||||||
|
|
||||||
|
def initialize(current_user:, opts: {}) |
||||||
@current_user = current_user |
@current_user = current_user |
||||||
|
@opts = opts |
||||||
end |
end |
||||||
end |
end |
||||||
|
|||||||
Loading…
Reference in new issue