Skip to content

Commit

Permalink
look for #{param}.x to catch image buttons
Browse files Browse the repository at this point in the history
  • Loading branch information
bkeepers committed Aug 9, 2007
1 parent 1c91299 commit cd65314
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/with_action.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ def initialize(params)
end

def respond
action = @order.detect {|a| !@params[a].blank? }
action = @order.detect {|a| !@params[a].blank? || !@params["#{a}.x"].blank? }
action ||= @order.include?(:any) ? :any : @order.first
@responses[action].call if @responses[action]
end
Expand Down

0 comments on commit cd65314

Please sign in to comment.