Module: Locomotive::Concerns::Asset::Types::ClassMethods

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

Instance Method Summary collapse

Instance Method Details

#all_typesObject


23
24
25
# File 'app/models/locomotive/concerns/asset/types.rb', line 23

def all_types
  %w{image pdf media stylesheet javascript font}
end

#types_for_content_editingObject


27
28
29
# File 'app/models/locomotive/concerns/asset/types.rb', line 27

def types_for_content_editing
  all_types - %w(stylesheet javascript font)
end