Module: Locomotive::Extensions::Asset::Types::ClassMethods

Defined in:
app/models/locomotive/extensions/asset/types.rb

Instance Method Summary collapse

Instance Method Details

#by_content_type(content_type) ⇒ Object



20
21
22
23
24
# File 'app/models/locomotive/extensions/asset/types.rb', line 20

def by_content_type(content_type)
  return self.all if content_type.blank?

  self.all.where(:content_type => content_type.to_s)
end