Skip to content

Instantly share code, notes, and snippets.

@dalpo
Created January 20, 2014 11:29
Show Gist options
  • Save dalpo/8518563 to your computer and use it in GitHub Desktop.
Save dalpo/8518563 to your computer and use it in GitHub Desktop.
SimpleForm validation fix
module SimpleForm
module Inputs
class Base
private
def valid_validator?(validator)
# conditional validators are no surprise to us, so just check the action:
action_validator_match?(validator)
end
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment