[logaling-commit] logaling/logaling-server [master] Ammend before_filter under the user resource

Back to archive index

SHIMADA Koji null+****@clear*****
Fri Oct 12 11:02:59 JST 2012


SHIMADA Koji	2012-10-12 11:02:59 +0900 (Fri, 12 Oct 2012)

  New Revision: db0a98e4da75a9895b31082e61a7f5077b405833
  https://github.com/logaling/logaling-server/commit/db0a98e4da75a9895b31082e61a7f5077b405833

  Log:
    Ammend before_filter under the user resource

  Modified files:
    app/controllers/github_project_memberships_controller.rb
    app/controllers/user_glossaries_controller.rb

  Modified: app/controllers/github_project_memberships_controller.rb (+3 -0)
===================================================================
--- app/controllers/github_project_memberships_controller.rb    2012-10-11 14:25:50 +0900 (b4e1ffa)
+++ app/controllers/github_project_memberships_controller.rb    2012-10-12 11:02:59 +0900 (37a96fb)
@@ -1,4 +1,7 @@
 class GithubProjectMembershipsController < ApplicationController
+  before_filter :authenticate!, :except => :show
+  before_filter :valid_user?, :except => :show
+
   def new
     @github_project_membership = GithubProjectMembership.new
   end

  Modified: app/controllers/user_glossaries_controller.rb (+1 -1)
===================================================================
--- app/controllers/user_glossaries_controller.rb    2012-10-11 14:25:50 +0900 (9c85ab2)
+++ app/controllers/user_glossaries_controller.rb    2012-10-12 11:02:59 +0900 (306b5ce)
@@ -1,7 +1,7 @@
 #coding: utf-8
 class UserGlossariesController < ApplicationController
   before_filter :authenticate!, :except => :show
-  before_filter :valid_user?, :only => [:new, :create]
+  before_filter :valid_user?, :except => :show
 
   # GET /user_glossaries/1
   def show
-------------- next part --------------
An HTML attachment was scrubbed...
Descargar 



More information about the logaling-commit mailing list
Back to archive index