Method: AssetType.slice

Defined in:
app/models/asset_type.rb

.slice(*types) ⇒ Object



200
201
202
# File 'app/models/asset_type.rb', line 200

def self.slice(*types)
  @@type_lookup.slice(*types.map(&:to_sym)).values if types # Hash#slice is provided by will_paginate
end