Sha256: 3f06cde603002ea60d89121feaab78838cc95daa79d17617fa8a468e9f6ba68e

Contents?: true

Size: 278 Bytes

Versions: 3

Compression:

Stored size: 278 Bytes

Contents

module CanTango
  class Ability
    module Helper
      module Account
        def user_account
          return subject.active_account if subject.respond_to? :active_account
          subject
        end
        alias_method :account, :user_account
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
cantango-core-0.1.2 lib/cantango/ability/helper/account.rb
cantango-core-0.1.1 lib/cantango/ability/helper/account.rb
cantango-core-0.1.0 lib/cantango/ability/helper/account.rb