install cancan

This commit is contained in:
Benjamin Cousaert 2014-12-09 11:18:18 +01:00
parent c36cc797ac
commit 6305d3327a
3 changed files with 6 additions and 0 deletions

View file

@ -68,3 +68,6 @@ gem 'paperclip'
# Use devise for Admins
gem 'devise'
# Use cancan for authorization
gem 'cancan'

View file

@ -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

View file

@ -1,5 +1,6 @@
class OrdersController < ApplicationController
def overview
puts current_user
@users = User.all
end