view refactoring
This commit is contained in:
parent
5e12f10c14
commit
5fb1b9ffe3
15 changed files with 67 additions and 20 deletions
|
@ -1,4 +1,5 @@
|
|||
class Admin::MailerController < ApplicationController
|
||||
layout "admin"
|
||||
before_filter :authenticate_user!
|
||||
before_filter :authenticate_admin!
|
||||
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
class Admin::ProjectsController < ApplicationController
|
||||
layout "admin"
|
||||
before_filter :authenticate_user!
|
||||
before_filter :authenticate_admin!
|
||||
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
class Admin::TeamMembersController < ApplicationController
|
||||
layout "admin"
|
||||
before_filter :authenticate_user!
|
||||
before_filter :authenticate_admin!
|
||||
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
class Admin::UsersController < ApplicationController
|
||||
layout "admin"
|
||||
before_filter :authenticate_user!
|
||||
before_filter :authenticate_admin!
|
||||
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
class KeysController < ApplicationController
|
||||
layout "profile"
|
||||
respond_to :js
|
||||
|
||||
def index
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
class ProfileController < ApplicationController
|
||||
layout "profile"
|
||||
def show
|
||||
@user = current_user
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue