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

Check for sane options in email_notifier #171

Conversation

bbuchalter
Copy link

Because #set_data_variables will create instance variables for
each key found in options[:data], check to make sure key names are
sane and will not interfer with functioning of EmailNotifier.

Because #set_data_variables will create instance variables for
each key found in options[:data], check to make sure key names are
sane and will not interfer with functioning of EmailNotifier.
@coveralls
Copy link

Coverage Status

Coverage increased (+0%) when pulling c7b15dc on bbuchalter:check_for_reserved_instance_vars into 245ce60 on smartinez87:master.

@teoulas
Copy link

teoulas commented Feb 26, 2014

I have the same problem, however I'm passing the params I get from an HTTP request which I don't control, so this solution doesn't help. I don't understand why instance variables are necessary, wouldn't it be safer/simpler, if there was only one instance variable containing the passed data option?

@roshats
Copy link

roshats commented Jul 14, 2015

I have the same problem. Would it be better to prefix all internal variables with underscore (for instance, @_options)?

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

4 participants