Skip to content

Revert "Revert "Moving channel token logic from levels_helper into models""#9268

Merged
balderdash merged 5 commits into
stagingfrom
levels-helper-cleanup-again
Jul 6, 2016
Merged

Revert "Revert "Moving channel token logic from levels_helper into models""#9268
balderdash merged 5 commits into
stagingfrom
levels-helper-cleanup-again

Conversation

@balderdash

Copy link
Copy Markdown
Contributor

Fix the original issue by calling storage_id and constructing the storage_app in the controller scope, and passing that into create_channel/find_or_create_channel_token.

StorageApps.new(storage_id('user')),
{
name: 'Untitled Project',
useFirebase: @level.game.use_firebase_for_new_project?,

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: might be better to merge this in create_channel if it's always @level.game.use_firebase_for_new_project? when data is present.

@joshlory

joshlory commented Jul 5, 2016

Copy link
Copy Markdown
Contributor

LGTM! Feel free to ignore nits.

@balderdash balderdash merged commit 9733858 into staging Jul 6, 2016
@balderdash balderdash deleted the levels-helper-cleanup-again branch July 6, 2016 20:57
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

Successfully merging this pull request may close these issues.

2 participants