Skip to content

Commit

Permalink
Feature #286 fixed for ruby 1.8
Browse files Browse the repository at this point in the history
  • Loading branch information
Carlos Segura committed Aug 10, 2011
1 parent 8f92f0e commit 0ea9957
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/simple_form/inputs/base.rb
Expand Up @@ -100,7 +100,7 @@ def conditional_validators?(validator)
end

def action_validators?(validator)
validator.options.include?(:on) ? validator.options[:on] == ACTIONS.key(template.controller.action_name.to_sym) : true
validator.options.include?(:on) ? ACTIONS[validator.options[:on]] == template.controller.action_name.to_sym : true
end

def attribute_required_by_default?
Expand Down

0 comments on commit 0ea9957

Please sign in to comment.