ChiliProject is not maintained anymore. Please be advised that there will be no more updates.

We do not recommend that you setup new ChiliProject instances and we urge all existing users to migrate their data to a maintained system, e.g. Redmine. We will provide a migration script later. In the meantime, you can use the instructions by Christian Daehn.

Remove returning since it causes deprecation warnings (Bug #414)


Added by Gregor Schmidt at 2011-05-13 10:21 pm. Updated at 2011-05-14 08:41 am.


Status:Closed Start date:2011-05-13
Priority:Normal Due date:
Assignee:- % Done:

0%

Category:-
Target version:2.0.0
Remote issue URL: Affected version:unstable

Description

The aaj-merge introduced a returning call.

Kernel#returning will be removed from Rails. Instead Object#tap should be used.


Associated revisions

Revision 76c72d8f
Added by Gregor Schmidt at 2011-05-14 12:19 am

[#414] remove returning which will be removed in future versions of Rails

Revision d8ae680a
Added by Felix Schäfer at 2011-05-14 01:32 am

Merge pull request #56 from schmidt/b/414-remove-returning

Remove returning since it causes deprecation warnings. #414

History

Updated by Gregor Schmidt at 2011-05-13 10:28 pm

Pull request is at https://github.com/chiliproject/chiliproject/pull/56.

Thanks for having a look.

  • Assignee deleted (Gregor Schmidt)
  • Status changed from Open to Ready for review

Updated by Felix Schäfer at 2011-05-13 11:31 pm

From what I was able to gather, Object#tap will probably not work on 1.8.6, one way around that could be to monkey-patch if needed:

1class Object
2  def tap
3    yield self
4    self
5  end
6end

I'd rather not add it per default though.

I'll merge this pull request, if anyone uses ChiliProject 2.0 or newer with 1.8.6, we can still decide how to best handle it.

Updated by Felix Schäfer at 2011-05-13 11:33 pm

  • Status changed from Ready for review to Closed

Updated by Felix Schäfer at 2011-05-14 08:41 am

Gregor Schmidt wrote:

This is done in Rails' core already.

Oh, no more reservations from me then.

Also available in: Atom PDF