{"action":"closed","issue":{"number":119,"created_at":"2011-09-06T01:30:28Z","pull_request":{"diff_url":null,"patch_url":null,"html_url":null},"body":"I'm getting this exception and have traced it to lib/state_machine/integrations/active_model/observer.rb.\r\n\r\nIn the update_with_multiple_args, it throws an exception when I state_machine attempts to run one of the after callbacks.  It seems to work on all but one, though I can't figure out why it won't work on the last as all the variables passed into the function seem to be complete.  Anyway, I've changed it as follows.  Let me know you think this might be a problem.\r\n\r\nWas:\r\n\r\n    def update_with_multiple_args(observed_method, object, *args) #:nodoc:\r\n          if args.any?\r\n            send(observed_method, object, *args) if respond_to?(observed_method)\r\n          else\r\n            update_without_multiple_args(observed_method, object)\r\n          end\r\n    end\r\n\r\nI changed to:\r\n\r\n      def update_with_multiple_args(observed_method, object, *args) #:nodoc:\r\n          if respond_to?(observed_method)\r\n            begin\r\n              send(observed_method, object, *args)\r\n            rescue\r\n              update_without_multiple_args(observed_method, object) \r\n            end\r\n          end\r\n      end\r\n","comments":1,"title":"observer - wrong number of arguments (2 for 1)","updated_at":"2011-10-21T02:05:58Z","url":"https://api.github.com/repos/pluginaweek/state_machine/issues/119","id":1574526,"assignee":{"avatar_url":"https://secure.gravatar.com/avatar/45f0a9e50c449a18f81bebcb6ff34543?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"45f0a9e50c449a18f81bebcb6ff34543","url":"https://api.github.com/users/obrie","id":6991,"login":"obrie"},"milestone":null,"closed_at":"2011-10-21T02:05:58Z","user":{"avatar_url":"https://secure.gravatar.com/avatar/05e7747d9c1a6b95b52c191a8d3a3112?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"05e7747d9c1a6b95b52c191a8d3a3112","url":"https://api.github.com/users/pzupan","id":45881,"login":"pzupan"},"html_url":"https://github.com/pluginaweek/state_machine/issues/119","labels":[],"state":"closed"},"legacy":{"number":119,"action":"closed","issue":1574526}}