Ruby on Rails | Screencasts | Download | Documentation | Weblog | Community | Source

Ticket #10565 (closed enhancement: fixed)

Opened 2 years ago

Last modified 2 years ago

[PATCH] Change rails:freeze:edge to call rails:update automatically

Reported by: jeff Assigned to: core
Priority: normal Milestone: 2.x
Component: Railties Version: edge
Severity: normal Keywords: verified
Cc:

Description

Using rake rails:freeze:edge almost always necessitates a subsequent rake rails:update. New users often don't know this, and I personally forget sometimes even though I know I'm supposed to do it.

This is a very small patch to simply invoke the rails:update task as the last thing the rails:freeze:edge task will do.

I wasn't sure how or if it's even possible to test the rake tasks, so I couldn't include a test. Let me know if there's a recommended way to do that.

Attachments

invoke_update_after_freeze_edge.diff (0.6 kB) - added by jeff on 12/19/07 16:50:10.

Change History

12/19/07 16:50:10 changed by jeff

  • attachment invoke_update_after_freeze_edge.diff added.

12/19/07 23:48:35 changed by josh

+1

12/19/07 23:58:40 changed by mislav

+1

If the user is prompted on overwrite, I see no problem with this.

12/20/07 05:11:07 changed by thewoolleyman

+1

12/20/07 05:55:46 changed by jeff

  • keywords set to verified.

01/03/08 00:14:54 changed by david

  • status changed from new to closed.
  • resolution set to fixed.

(In [8532]) Added that rails:update is run when you do rails:freeze:edge to ensure you also get the latest JS and config files (closes #10565) [jeff]