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

Strip all of the options given to run prior to assignment #24

Closed
AaronLasseigne opened this issue Jul 11, 2013 · 2 comments
Closed

Strip all of the options given to run prior to assignment #24

AaronLasseigne opened this issue Jul 11, 2013 · 2 comments
Assignees

Comments

@AaronLasseigne
Copy link
Owner

No description provided.

@tfausak
Copy link
Collaborator

tfausak commented Jul 15, 2013

Would this only be for strings? If it worked for all input types, we'd have to strip after converting to a string. For example:

class Interaction < ActiveInteraction::Base
  boolean :b
  def execute
    b
  end
end
Interaction.run!(b: ' 1 ')
# => true

@tfausak
Copy link
Collaborator

tfausak commented Jul 16, 2013

For what it's worth, Mutations only strips string attributes. Check out line 30 of string_filter.rb.

@ghost ghost assigned tfausak Jul 16, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants