aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--app/controllers/application.rb3
-rw-r--r--app/controllers/index_controller.rb5
-rw-r--r--app/controllers/list_controller.rb5
-rw-r--r--app/controllers/new_controller.rb4
-rw-r--r--app/controllers/request_controller.rb5
-rw-r--r--app/controllers/user_controller.rb5
6 files changed, 16 insertions, 11 deletions
diff --git a/app/controllers/application.rb b/app/controllers/application.rb
index f681b46c8..bf78dd0b0 100644
--- a/app/controllers/application.rb
+++ b/app/controllers/application.rb
@@ -6,7 +6,7 @@
# Copyright (c) 2007 UK Citizens Online Democracy. All rights reserved.
# Email: francis@mysociety.org; WWW: http://www.mysociety.org/
#
-# $Id: application.rb,v 1.10 2007-10-08 15:16:22 francis Exp $
+# $Id: application.rb,v 1.11 2007-10-09 17:29:43 francis Exp $
class ApplicationController < ActionController::Base
@@ -94,7 +94,6 @@ class ApplicationController < ActionController::Base
params.update(session[:intended_params])
end
end
-
# For administration interface, return display name of authenticated user
def admin_http_auth_user
diff --git a/app/controllers/index_controller.rb b/app/controllers/index_controller.rb
index b9af922a0..e15e72fdd 100644
--- a/app/controllers/index_controller.rb
+++ b/app/controllers/index_controller.rb
@@ -4,7 +4,7 @@
# Copyright (c) 2007 UK Citizens Online Democracy. All rights reserved.
# Email: francis@mysociety.org; WWW: http://www.mysociety.org/
#
-# $Id: index_controller.rb,v 1.1 2007-10-08 15:02:01 francis Exp $
+# $Id: index_controller.rb,v 1.2 2007-10-09 17:29:43 francis Exp $
class IndexController < ApplicationController
def index
@@ -13,6 +13,7 @@ class IndexController < ApplicationController
end
end
- #before_filter :check_authentication, :except => [:signin]
+ private
+
end
diff --git a/app/controllers/list_controller.rb b/app/controllers/list_controller.rb
index 117b93c7a..0bd336573 100644
--- a/app/controllers/list_controller.rb
+++ b/app/controllers/list_controller.rb
@@ -4,12 +4,13 @@
# Copyright (c) 2007 UK Citizens Online Democracy. All rights reserved.
# Email: francis@mysociety.org; WWW: http://www.mysociety.org/
#
-# $Id: list_controller.rb,v 1.2 2007-10-09 11:30:01 francis Exp $
+# $Id: list_controller.rb,v 1.3 2007-10-09 17:29:43 francis Exp $
class ListController < ApplicationController
-
def index
@info_request_pages, @info_requests = paginate :info_requests, :per_page => 25, :order => "created_at desc"
end
+ private
+
end
diff --git a/app/controllers/new_controller.rb b/app/controllers/new_controller.rb
index 175393502..84fb0fb81 100644
--- a/app/controllers/new_controller.rb
+++ b/app/controllers/new_controller.rb
@@ -4,7 +4,7 @@
# Copyright (c) 2007 UK Citizens Online Democracy. All rights reserved.
# Email: francis@mysociety.org; WWW: http://www.mysociety.org/
#
-# $Id: new_controller.rb,v 1.2 2007-10-08 15:16:22 francis Exp $
+# $Id: new_controller.rb,v 1.3 2007-10-09 17:29:43 francis Exp $
class NewController < ApplicationController
def index
@@ -42,6 +42,8 @@ class NewController < ApplicationController
# end
end
+ private
+
end
diff --git a/app/controllers/request_controller.rb b/app/controllers/request_controller.rb
index b1c994531..e860d43ef 100644
--- a/app/controllers/request_controller.rb
+++ b/app/controllers/request_controller.rb
@@ -4,12 +4,13 @@
# Copyright (c) 2007 UK Citizens Online Democracy. All rights reserved.
# Email: francis@mysociety.org; WWW: http://www.mysociety.org/
#
-# $Id: request_controller.rb,v 1.1 2007-10-09 11:30:01 francis Exp $
+# $Id: request_controller.rb,v 1.2 2007-10-09 17:29:43 francis Exp $
class RequestController < ApplicationController
-
def index
@info_request = InfoRequest.find(params[:id])
end
+ private
+
end
diff --git a/app/controllers/user_controller.rb b/app/controllers/user_controller.rb
index 3875bf745..13b2d64cd 100644
--- a/app/controllers/user_controller.rb
+++ b/app/controllers/user_controller.rb
@@ -4,12 +4,13 @@
# Copyright (c) 2007 UK Citizens Online Democracy. All rights reserved.
# Email: francis@mysociety.org; WWW: http://www.mysociety.org/
#
-# $Id: user_controller.rb,v 1.1 2007-10-09 17:12:11 francis Exp $
+# $Id: user_controller.rb,v 1.2 2007-10-09 17:29:43 francis Exp $
class UserController < ApplicationController
-
def index
@display_users = User.find(:all, :conditions => [ "name = ?", params[:name] ])
end
+ private
+
end