Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make ApplicationDecorator not decorable #50

Open
nicolas-brousse opened this issue Dec 1, 2023 · 0 comments
Open

Make ApplicationDecorator not decorable #50

nicolas-brousse opened this issue Dec 1, 2023 · 0 comments

Comments

@nicolas-brousse
Copy link
Member

Make ApplicaitonDecorator work as Dekorator::Base do.

Maybe adding something like

See:
https://github.com/komposable/dekorator/blob/b037876988dd5416257855719edf6ddd6bb47c10/lib/dekorator.rb#L98C9-L98C9

- return false if object_or_enumerable.is_a?(Dekorator::Base)
+ return false if object_or_enumerable.abstract_class? || object_or_enumerable == Base

And have abstract_class? method like `ActiveRecord does.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant