install cancan
This commit is contained in:
parent
c36cc797ac
commit
6305d3327a
3 changed files with 6 additions and 0 deletions
3
Gemfile
3
Gemfile
|
@ -68,3 +68,6 @@ gem 'paperclip'
|
|||
|
||||
# Use devise for Admins
|
||||
gem 'devise'
|
||||
|
||||
# Use cancan for authorization
|
||||
gem 'cancan'
|
||||
|
|
|
@ -41,6 +41,7 @@ GEM
|
|||
columnize (~> 0.8)
|
||||
debugger-linecache (~> 1.2)
|
||||
slop (~> 3.6)
|
||||
cancan (1.6.10)
|
||||
capistrano (3.2.1)
|
||||
i18n
|
||||
rake (>= 10.0.0)
|
||||
|
@ -172,6 +173,7 @@ DEPENDENCIES
|
|||
bootstrap-sass (= 3.2.0.0)
|
||||
bootstrap-will_paginate (= 0.0.10)
|
||||
byebug
|
||||
cancan
|
||||
capistrano (~> 3.1)
|
||||
capistrano-rails (~> 1.1)
|
||||
capistrano-rvm
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
class OrdersController < ApplicationController
|
||||
def overview
|
||||
puts current_user
|
||||
@users = User.all
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue