{"issue":{"title":"Adding basic callbacks support to ActiveResource","user":{"login":"guilleiguaran","id":160941,"url":"https://api.github.com/users/guilleiguaran","avatar_url":"https://secure.gravatar.com/avatar/73d57855a3bfe5c534596197a895ab6e?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"73d57855a3bfe5c534596197a895ab6e"},"created_at":"2011-06-20T02:55:40Z","milestone":null,"labels":[],"state":"open","updated_at":"2011-12-28T01:44:05Z","id":1082648,"closed_at":null,"html_url":"https://github.com/rails/rails/issues/1779","pull_request":{"patch_url":"https://github.com/rails/rails/pull/1779.patch","html_url":"https://github.com/rails/rails/pull/1779","diff_url":"https://github.com/rails/rails/pull/1779.diff"},"body":"This add support for some of the popular ActiveRecord callbacks to ActiveResource: \r\n\r\nbefore_validation, after_validation, before_save, around_save, after_save, before_create, around_create, after_create, before_update, around_update, after_update, before_destroy, around_destroy, after_destroy.\r\n\r\nThis an initial work, I will start to work soon adding support for contexts in *_validation callbacks (ex. before_validation :on => create) but first I want do add context support to existing validations (ex. validates :on => :create)","number":1779,"url":"https://api.github.com/repos/rails/rails/issues/1779","comments":3,"assignee":null},"comment":{"user":{"login":"vothane","id":256203,"url":"https://api.github.com/users/vothane","avatar_url":"https://secure.gravatar.com/avatar/3f1cb1dd03d58a892ab0ae80d0449833?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"3f1cb1dd03d58a892ab0ae80d0449833"},"created_at":"2011-12-28T01:44:05Z","updated_at":"2011-12-28T01:44:05Z","id":3287424,"body":"I had the same idea several months and did my own project at https://github.com/vothane/acts_with_callbacks back in April. Its more of a hack and does only a subset of the available callbacks. I think guilleiguaran approach is more worthwhile. Keep up the good work. Thanks.","url":"https://api.github.com/repos/rails/rails/issues/comments/3287424"},"action":"created"}