-
Notifications
You must be signed in to change notification settings - Fork 0
Abstract Scope #3
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
base: master
Are you sure you want to change the base?
Conversation
We set the options and then set all instance variables Added a nil refinement so that the system do not break with a nil parent
Added scoping methods
Change path normalization methods to class methods Use set accessor to access the set Return an empty hash for hash based scope properties if they are not supplied
|
I guess once we're happy with the file and code organization and the classes and their hierarchy, I'll start work on improving performance. |
…iables if no argument is provided
MatchRoute is yet to be implemented
Because modules are a better way to share code instead of treating concrete classes as abstract when no such construct is supported by the language itself
|
@pixeltrix Switched to a module for |
A bug in prefix_name_for_action prevented from proper route helper generation Added default_url_options
Fixed processing of to option and added root method
Append '/' only if child module exists along with parent module Added has_named_route? method Added some outline to match_route but we’ll leave that aside for the time being and replace the implementation in future after we get the whole thing working
It declares routes for a simple resource :single_resource declaration
This needs to be a separate class. Need to rethink resources
We try to factor out common methods for a scope into the AbstractScope class.
It is yet unclear whether the Scope class should inherit from AbstractScope or if AbstractScope in itself suffices. This will only get clear when we start implementing resources. Right now we're trying to create an object graph which can generate non resourceful routes and is divided into small understandable files
\cc @pixeltrix