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

Refs #3809 - Using defaults for AndOr cop #3643

Closed

Conversation

daviddavis
Copy link
Contributor

@daviddavis daviddavis commented Jul 12, 2016

Follow up PR to #3634

@daviddavis daviddavis changed the title Rufs #3809 - Using defaults for AndOr cop Refs #3809 - Using defaults for AndOr cop Jul 12, 2016
@daviddavis daviddavis force-pushed the temp/20160712111803 branch 3 times, most recently from 07935ed to 83084a7 Compare July 12, 2016 18:31
@@ -35,7 +35,7 @@ class BaseController < ActionController::Base
rescue_from Foreman::MaintenanceException, :with => :service_unavailable

def get_resource
instance_variable_get :"@#{resource_name}" or raise 'no resource loaded'
instance_variable_get(:"@#{resource_name}") || (raise 'no resource loaded')
Copy link
Contributor

Choose a reason for hiding this comment

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

adding the brackets to the method call, i.e. || raise('no resource loaded') is probably more typical

@domcleal
Copy link
Contributor

Please also rebase the PR.

@daviddavis
Copy link
Contributor Author

@domcleal updated.

@domcleal
Copy link
Contributor

Merged as e263719, thanks @daviddavis.

@domcleal domcleal closed this Jul 25, 2016
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants