-
Notifications
You must be signed in to change notification settings - Fork 53
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
Demonstration of Extension Approach 2 #47
Conversation
Provide Schema and Support function DSL through ModelExtension Provide Router Addition DSL through RouterExtension Provide All Registered Extensions Consolidation through InstallExtensions Hook into Nectar Models through NectarExtender Hook into Nectar Router through Nectar.RouteExtender
Removed "/" route pointing to Page Controller to reach out to Nectar Router Home Added nectar app as umbrella dependency to user_app commented Endpoint supervisor as only want to start Repo and other workers Add nectar in applications to start Nectar Repo
…tensionsManager name Added Favourite Products NectarExtension to extend Product & User Added favorite_products app as umbrella dependency to extensions_manager Added favorite_products app as umbrella dependency to user_app Registered Product and User Extension in ExtensionsManager.ExtendProduct and ExtensionsManager.Extenduser present in install_extensions.ex Added UserLike Model under favorite_products Added UserLike Migration for favorite_products Updated Nectar and FavoriteProducts Repo to easily migrate the DB with changes Changed UserApp Repo DB name to be different than Nectar and Favourite Products to highlight any dependency on it
Registered Favourite Products Route Extension in ExtensionsManager.Router present in install_extensions.ex Updated ExtensionsManager.Router in Nectar.RouteExtender to register ExtensionRoutes in Nectar.Router Added Dummy Route in FavoriteProducts.Router to use favorite_path Route Helper [Hack] Added Favourites Index Page to show Favorited Products and List of Products to Favorite Added Mark / Unmark a Product as Favourite
|
||
defmacro include_methods do | ||
quote do | ||
unquote(Enum.map(method_blocks, fn (method_block) -> method_block end)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why not just unquote(method_blocks)
? The map doesn't look like it makes any effect on the data...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for pointing this out, yes it can be safely removed with no impact. 👍
No description provided.