Sha256: 47e1729544f31a47c84a724b364692f0a55469c494892b0fc15f6e879aae7cba

Contents?: true

Size: 334 Bytes

Versions: 1

Compression:

Stored size: 334 Bytes

Contents

module CanTango
  module Builder::Permit
    class AccountType < Base
      # builds a list of Permits for each role of the current ability user (or account)
      # @return [Array<RoleGroupPermit::Base>] the role permits built for this ability
      def build
        return [] if !account
        super
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
cantango-permits-0.1.1 lib/cantango/permits_ext/builder/permit/account_type.rb