mirror of
https://github.com/TracksApp/tracks.git
synced 2026-02-03 06:21:49 +01:00
Because of a typo in project.rb, updating an existing project from completed to either hidden or active was broken. Fixes #418.
Also removed signup route because this is now accomplished via the admin controller. git-svn-id: http://www.rousette.org.uk/svn/tracks-repos/trunk@380 a4c988fc-2ded-0310-b66e-134b36920a42
This commit is contained in:
parent
c719eeb146
commit
4a97b39928
2 changed files with 2 additions and 3 deletions
|
|
@ -21,11 +21,11 @@ class Project < ActiveRecord::Base
|
|||
state :completed
|
||||
|
||||
event :activate do
|
||||
transitions :to => :active, :from => [:hidden, :complete]
|
||||
transitions :to => :active, :from => [:hidden, :completed]
|
||||
end
|
||||
|
||||
event :hide do
|
||||
transitions :to => :hidden, :from => [:active, :complete]
|
||||
transitions :to => :hidden, :from => [:active, :completed]
|
||||
end
|
||||
|
||||
event :complete do
|
||||
|
|
|
|||
|
|
@ -19,7 +19,6 @@ ActionController::Routing::Routes.draw do |map|
|
|||
|
||||
# Admin Routes
|
||||
map.connect 'admin', :controller => 'admin', :action => 'index'
|
||||
# map.connect 'admin/signup', :controller => 'admin', :action => 'create'
|
||||
map.connect 'admin/destroy/:id', :controller => 'admin', :action => 'destroy', :requirements => {:id => /\d+/}
|
||||
|
||||
# Mobile/lite version
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue