OSDN Git Service

login required
authornomeu <nomeu@nomeu.org>
Mon, 14 Jun 2010 17:06:00 +0000 (02:06 +0900)
committernomeu <nomeu@nomeu.org>
Mon, 14 Jun 2010 17:06:00 +0000 (02:06 +0900)
app/controllers/locations_controller.rb
app/controllers/pmds_controller.rb
app/controllers/thumbs_controller.rb
app/controllers/vmds_controller.rb
app/controllers/xes_controller.rb
test/functional/locations_controller_test.rb
test/functional/pmds_controller_test.rb
test/functional/thumbs_controller_test.rb
test/functional/vmds_controller_test.rb
test/functional/xes_controller_test.rb

index d76c8be..4848a9b 100644 (file)
@@ -1,6 +1,7 @@
 class LocationsController < ApplicationController
   include AuthenticatedSystem
   layout 'arcs'
+  before_filter :login_required, :only => [ :new, :edit, :create, :update, :destroy ]
 
   # GET /locations
   # GET /locations.xml
index d9f0f88..689854e 100644 (file)
@@ -1,6 +1,7 @@
 class PmdsController < ApplicationController
   include AuthenticatedSystem
   layout 'arcs'
+  before_filter :login_required, :only => [ :new, :edit, :create, :update, :destroy ]
 
   # GET /pmds
   # GET /pmds.xml
index 3fae476..e968c31 100644 (file)
@@ -1,6 +1,7 @@
 class ThumbsController < ApplicationController
   include AuthenticatedSystem
   layout 'arcs'
+  before_filter :login_required, :only => [ :new, :edit, :create, :update, :destroy ]
 
   # GET /thumbs
   # GET /thumbs.xml
index 52ff873..b1e7af6 100644 (file)
@@ -1,6 +1,7 @@
 class VmdsController < ApplicationController
   include AuthenticatedSystem
   layout 'arcs'
+  before_filter :login_required, :only => [ :new, :edit, :create, :update, :destroy ]
 
   # GET /vmds
   # GET /vmds.xml
index 7f44e5e..7899b3f 100644 (file)
@@ -1,6 +1,7 @@
 class XesController < ApplicationController
   include AuthenticatedSystem
   layout 'arcs'
+  before_filter :login_required, :only => [ :new, :edit, :create, :update, :destroy ]
 
   # GET /xes
   # GET /xes.xml
index c8dc983..eec16c3 100644 (file)
@@ -1,6 +1,10 @@
 require 'test_helper'
 
 class LocationsControllerTest < ActionController::TestCase
+  def setup
+    session[:user_id] = users(:one).id
+  end
+
   test "should get index" do
     get :index
     assert_response :success
index 4b0dd68..491cefa 100644 (file)
@@ -1,6 +1,10 @@
 require 'test_helper'
 
 class PmdsControllerTest < ActionController::TestCase
+  def setup
+    session[:user_id] = users(:one).id
+  end
+
   test "should get index" do
     get :index
     assert_response :success
index 56ebe8d..5c6ee94 100644 (file)
@@ -1,6 +1,10 @@
 require 'test_helper'
 
 class ThumbsControllerTest < ActionController::TestCase
+  def setup
+    session[:user_id] = users(:one).id
+  end
+
   test "should get index" do
     get :index
     assert_response :success
index 88bc1b3..b51094e 100644 (file)
@@ -1,6 +1,10 @@
 require 'test_helper'
 
 class VmdsControllerTest < ActionController::TestCase
+  def setup
+    session[:user_id] = users(:one).id
+  end
+
   test "should get index" do
     get :index
     assert_response :success
index 5fd4ffd..0b0b32a 100644 (file)
@@ -1,6 +1,10 @@
 require 'test_helper'
 
 class XesControllerTest < ActionController::TestCase
+  def setup
+    session[:user_id] = users(:one).id
+  end
+
   test "should get index" do
     get :index
     assert_response :success