Sha256: d8623538b80f189f36284a941ade1b0e9181c92608cddde6c7facf831ca86510

Contents?: true

Size: 388 Bytes

Versions: 21

Compression:

Stored size: 388 Bytes

Contents

module CanTango
  class PermissionEngine < Engine
    module Selector
      class AccountTypes < Base
        attr_reader :account_type

        def initialize subject
          @account_type = subject.account.class.to_s.underscore
        end

        protected

        def relevant? account_type
          self.account_type == account_type
        end
      end
    end
  end
end





Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
cantango-0.9.4.7 lib/cantango/permission_engine/selector/account_types.rb
cantango-0.9.4.6 lib/cantango/permission_engine/selector/account_types.rb
cantango-0.9.4.5 lib/cantango/permission_engine/selector/account_types.rb
cantango-0.9.4.3 lib/cantango/permission_engine/selector/account_types.rb
cantango-0.9.4.2 lib/cantango/permission_engine/selector/account_types.rb
cantango-0.9.4.1 lib/cantango/permission_engine/selector/account_types.rb
cantango-0.9.4 lib/cantango/permission_engine/selector/account_types.rb
cantango-0.9.3.2 lib/cantango/permission_engine/selector/account_types.rb
cantango-0.8.9.5 lib/cantango/permission_engine/selector/account_types.rb
cantango-0.8.9.4 lib/cantango/permission_engine/selector/account_types.rb
cantango-0.8.9.3 lib/cantango/permission_engine/selector/account_types.rb
cantango-0.8.9.2 lib/cantango/permission_engine/selector/account_types.rb
cantango-0.8.9.1 lib/cantango/permission_engine/selector/account_types.rb
cantango-0.8.9 lib/cantango/permission_engine/selector/account_types.rb
cantango-0.8.8.1 lib/cantango/permission_engine/selector/account_types.rb
cantango-0.8.8 lib/cantango/permission_engine/selector/account_types.rb
cantango-0.8.7 lib/cantango/permission_engine/selector/account_types.rb
cantango-0.8.6.2 lib/cantango/permission_engine/selector/account_types.rb
cantango-0.8.6.1 lib/cantango/permission_engine/selector/account_types.rb
cantango-0.8.6 lib/cantango/permission_engine/selector/account_types.rb