Permalink
Browse files

Remove some unused gems, including cancan.

  • Loading branch information...
1 parent bc393f3 commit 3f4aa4ffc7ae240b21eb519771dd83d7fa4b9ee4 @fermion fermion committed Dec 2, 2013
Showing with 1 addition and 54 deletions.
  1. +1 −6 Gemfile
  2. +0 −20 Gemfile.lock
  3. +0 −28 app/models/ability.rb
View
@@ -7,23 +7,18 @@ gem 'backbone-support', '0.3.0'
gem 'bcrypt-ruby', '~> 3.0.1'
gem 'json', '~> 1.7'
gem 'bitmask_attributes'
-gem 'cancan'
gem 'coffee-filter'
gem 'draper', '0.18.0'
gem 'faker'
-gem 'haml'
gem 'haml-rails'
-gem 'heroku'
gem 'jbuilder'
gem 'mobile-fu'
gem 'paper_trail', '~> 2.7'
gem 'pg'
gem 'rails-behaviors'
gem 'sass-rails', '~> 3.2'
gem 'thin'
-gem 'will_paginate'
gem 'newrelic_rpm'
-gem 'compass'
gem 'compass-rails'
gem 'git'
gem 'figaro'
@@ -39,7 +34,7 @@ group :development, :test do
end
group :development do
- gem 'awesome_print', require: 'ap'
+ gem 'awesome_print', require: 'ap'
gem 'pry'
gem 'pry-nav'
gem 'pry-remote', require: 'pry-remote'
View
@@ -28,7 +28,6 @@ GEM
activesupport (3.2.15)
i18n (~> 0.6, >= 0.6.4)
multi_json (~> 1.0)
- addressable (2.3.2)
arel (3.0.2)
asset_sync (1.0.0)
activemodel
@@ -40,7 +39,6 @@ GEM
activerecord (~> 3.0)
blankslate (2.1.2.4)
builder (3.0.4)
- cancan (1.6.8)
chunky_png (1.2.6)
coderay (1.0.7)
coffee-filter (0.1.1)
@@ -98,14 +96,6 @@ GEM
activesupport (~> 3.0)
haml (~> 3.0)
railties (~> 3.0)
- heroku (2.30.5)
- heroku-api (~> 0.3.4)
- launchy (>= 0.3.2)
- netrc (~> 0.7.7)
- rest-client (~> 1.6.1)
- rubyzip
- heroku-api (0.3.4)
- excon (~> 0.16.1)
hike (1.2.3)
i18n (0.6.5)
jbuilder (0.4.3)
@@ -114,8 +104,6 @@ GEM
journey (1.0.4)
json (1.8.1)
kgio (2.8.1)
- launchy (2.1.2)
- addressable (~> 2.3)
mail (2.5.4)
mime-types (~> 1.16)
treetop (~> 1.4.8)
@@ -132,7 +120,6 @@ GEM
net-scp (1.1.2)
net-ssh (>= 2.6.5)
net-ssh (2.7.0)
- netrc (0.7.7)
newrelic_rpm (3.6.2.96)
nokogiri (1.5.5)
paper_trail (2.7.0)
@@ -196,7 +183,6 @@ GEM
rspec-expectations (~> 2.14.0)
rspec-mocks (~> 2.14.0)
ruby-hmac (0.4.0)
- rubyzip (0.9.9)
sass (3.2.1)
sass-rails (3.2.5)
railties (~> 3.2.0)
@@ -234,7 +220,6 @@ GEM
kgio (~> 2.6)
rack
raindrops (~> 0.7)
- will_paginate (3.0.3)
PLATFORMS
ruby
@@ -245,19 +230,15 @@ DEPENDENCIES
backbone-support (= 0.3.0)
bcrypt-ruby (~> 3.0.1)
bitmask_attributes
- cancan
coffee-filter
coffee-rails (~> 3.2)
- compass
compass-rails
draper (= 0.18.0)
factory_girl_rails
faker
figaro
git
- haml
haml-rails
- heroku
jbuilder
json (~> 1.7)
memcache-client
@@ -280,4 +261,3 @@ DEPENDENCIES
thin
uglifier (>= 1.0)
unicorn
- will_paginate
View
@@ -1,28 +0,0 @@
-class Ability
- include CanCan::Ability
-
- def initialize(user)
- # Define abilities for the passed in user here. For example:
- #
- # user ||= User.new # guest user (not logged in)
- # if user.admin?
- # can :manage, :all
- # else
- # can :read, :all
- # end
- #
- # The first argument to `can` is the action you are giving the user permission to do.
- # If you pass :manage it will apply to every action. Other common actions here are
- # :read, :create, :update and :destroy.
- #
- # The second argument is the resource the user can perform the action on. If you pass
- # :all it will apply to every resource. Otherwise pass a Ruby class of the resource.
- #
- # The third argument is an optional hash of conditions to further filter the objects.
- # For example, here the user can only update published articles.
- #
- # can :update, Article, :published => true
- #
- # See the wiki for details: https://github.com/ryanb/cancan/wiki/Defining-Abilities
- end
-end

0 comments on commit 3f4aa4f

Please sign in to comment.