Skip to content

Commit

Permalink
@wip cleanup for initial release.
Browse files Browse the repository at this point in the history
  • Loading branch information
robmathews committed Nov 5, 2015
1 parent 90b4d9f commit b0053b8
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions lib/draper/cancan.rb
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
require "draper/cancan/version"

puts "Draper::CanCan being loaded!"
module Draper
module CanCan
# actually don't need any code in my gem's namespace ..
def can?(action, subject, *extra_args)
puts "Draper::CanCan#can? was called!"
if subject.is_a?(Draper::Decorator)
super(action,subject.model,*extra_args)
else
Expand All @@ -14,7 +12,6 @@ def can?(action, subject, *extra_args)
end

def cannot?(*args)
puts "Draper::CanCan#cannot?() was called"
!can?(*args)
end
end
Expand Down

0 comments on commit b0053b8

Please sign in to comment.