Skip to content

Commit

Permalink
Fix decorators by removing private methods
Browse files Browse the repository at this point in the history
  • Loading branch information
mayorova committed Sep 18, 2024
1 parent 8e46a2f commit c98b003
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 4 deletions.
2 changes: 0 additions & 2 deletions app/decorators/account_decorator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@
class AccountDecorator < ApplicationDecorator
delegate :display_name, :email, to: :admin_user, prefix: true

protected

def admin_user
@admin_user ||= (super || User.new).decorate
end
Expand Down
2 changes: 0 additions & 2 deletions app/decorators/proxy_config_decorator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@
class ProxyConfigDecorator < ApplicationDecorator
delegate :display_name, to: :user, prefix: true

protected

def user
@user ||= (super || User.new).decorate
end
Expand Down

0 comments on commit c98b003

Please sign in to comment.