Sha256: 9e3220f15192271ff237edd0f6a861a21976d3992f924f239b28957f79a653a8

Contents?: true

Size: 234 Bytes

Versions: 10

Compression:

Stored size: 234 Bytes

Contents

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

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
cantango-core-0.1.9.3 lib/cantango/ability/helper/account.rb
cantango-core-0.1.9.2 lib/cantango/ability/helper/account.rb
cantango-core-0.1.9.1 lib/cantango/ability/helper/account.rb
cantango-core-0.1.9 lib/cantango/ability/helper/account.rb
cantango-core-0.1.8 lib/cantango/ability/helper/account.rb
cantango-core-0.1.7 lib/cantango/ability/helper/account.rb
cantango-core-0.1.6 lib/cantango/ability/helper/account.rb
cantango-core-0.1.5 lib/cantango/ability/helper/account.rb
cantango-core-0.1.4 lib/cantango/ability/helper/account.rb
cantango-core-0.1.3 lib/cantango/ability/helper/account.rb