lib/cantango/api/user/session.rb in cantango-0.9.4.1 vs lib/cantango/api/user/session.rb in cantango-0.9.4.2

- old
+ new

@@ -1,13 +1,8 @@ module CanTango module Api module User module Session - # Example: generated from types of accounts! (see below) - # def admin_can?(*args) - # current_ability(:admin).can?(*args) - # end - def self.included(base) ::CanTango.config.users.registered.each do |user| base.class_eval %{ def session_#{user} current_#{user} if respond_to? :current_#{user}