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

Jw change protocol type madness #762

Merged
merged 11 commits into from Nov 30, 2016
Merged

Conversation

jwiel86
Copy link
Contributor

@jwiel86 jwiel86 commented Nov 29, 2016

For more information please refer to the pivotal story: https://www.pivotaltracker.com/story/show/134799099

if params[:updated_protocol_type] == 'true' && params[:protocol][:type] == 'Study'
@protocol.update_attribute(:type, params[:protocol][:type])
@protocol.activate
@protocol = Protocol.find(params[:id]) #Protocol reload
Copy link
Contributor

Choose a reason for hiding this comment

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

@protocol.reload does this

Copy link
Contributor

@jleonardw9 jleonardw9 left a comment

Choose a reason for hiding this comment

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

Looks great!

@jleonardw9 jleonardw9 merged commit 4c2115b into master Nov 30, 2016
@jleonardw9 jleonardw9 deleted the jw_change_protocol_type_madness branch November 30, 2016 15:06
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.

None yet

3 participants