lib/cancannible/preload_adapter.rb in cancannible-1.0.1 vs lib/cancannible/preload_adapter.rb in cancannible-2.0.0

- old
+ new

@@ -1,15 +1,12 @@ module Cancannible::PreloadAdapter extend ActiveSupport::Concern included do - # Tap Ability.new to first preload permissions via Cancannible alias_method :cancan_initialize, :initialize def initialize(user) - Cancannible::Preloader.preload_abilities!(user,self) + Cancannible::Preloader.preload_abilities!(user, self) cancan_initialize(user) end - end - -end \ No newline at end of file +end