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

Planning more than one event at a time #201

Open
jhsu802701 opened this issue Oct 7, 2018 · 0 comments
Open

Planning more than one event at a time #201

jhsu802701 opened this issue Oct 7, 2018 · 0 comments

Comments

@jhsu802701
Copy link
Contributor

Is there a need to plan for more than one event at a time? I see that there is a plan afoot to provide this capability, but it has not yet been implemented, and I don't see any other open issue about this.

I see from the block diagram generated by the rails-erd gem (in my own personal branch in my fork) that the settings class has the parameter current_event_id. At the same time, a search of the code in this app shows that the current_event_id parameter is only mentioned in src/db/schema.rb and src/spec/controllers/sessions_controller_spec.rb. Thus, the current_event_id parameter does NOT appear to be used in the app.

At the moment, I see in src/app/models/event.rb that the current_event is defined as the very last event (when in ascending order by date).

I could set current_event in src/app/models/event.rb to refer to the current_event_id setting and default to the last event if that parameter is not provided. How should I proceed?

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

No branches or pull requests

1 participant